/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background: linear-gradient(145deg, #0f0a1a 0%, #1a1025 50%, #0d0a1a 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: #c084fc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e9d5ff;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #a855f7;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* ===== HEADER ===== */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 26, 0.85);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e9d5ff;
  letter-spacing: -0.02em;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-list a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #c4b5fd;
}

.nav-list a:hover {
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #e9d5ff 0%, #a855f7 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #c4b5fd;
  margin-bottom: 1rem;
}

.hero-description {
  color: #a5b4fc;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.resin-droplet {
  width: 140px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== CALCULATOR ===== */
.calculator-section {
  padding: 2.5rem 0 3rem;
}

.calculator-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #e9d5ff;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calc-form {
  background: rgba(30, 20, 50, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #c4b5fd;
}

select {
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: #1a1025;
  color: #e2e8f0;
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23c084fc'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

select:focus {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(168, 85, 247, 0.3);
  outline: none;
  margin: 0.5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c084fc;
  cursor: pointer;
  border: 2px solid #e9d5ff;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c084fc;
  cursor: pointer;
  border: 2px solid #e9d5ff;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a5b4fc;
}

.range-value {
  font-weight: 700;
  color: #e9d5ff;
}

.btn-calculate {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.btn-calculate:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.btn-calculate:active {
  transform: translateY(0);
}

/* ===== RESULTS ===== */
.results-panel {
  background: rgba(30, 20, 50, 0.5);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 300px;
  backdrop-filter: blur(12px);
}

.results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: #94a3b8;
  min-height: 280px;
}

.results-output {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.results-output h3 {
  color: #e9d5ff;
  font-size: 1.2rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(168, 85, 247, 0.08);
  border-radius: 0.5rem;
  border-left: 3px solid #a855f7;
}

.step-icon {
  font-size: 1.3rem;
}

.step-details {
  display: flex;
  flex-direction: column;
}

.step-details strong {
  font-size: 0.85rem;
  color: #c4b5fd;
}

.step-details span {
  font-weight: 700;
  color: #e2e8f0;
}

.schedule-note {
  font-size: 0.85rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.results-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  border: 1px solid #a855f7;
  border-radius: 0.4rem;
  background: transparent;
  color: #c084fc;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.15);
}

.btn-text {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.btn-text:hover {
  color: #c4b5fd;
}

.saved-schedules {
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  padding-top: 1rem;
}

.saved-schedules h4 {
  font-size: 0.95rem;
  color: #c4b5fd;
  margin-bottom: 0.5rem;
}

#saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#saved-list li {
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  background: rgba(168, 85, 247, 0.06);
  border-radius: 0.3rem;
  color: #cbd5e1;
}

.hidden {
  display: none !important;
}

/* ===== INFO ===== */
.info-section {
  padding: 2.5rem 0;
}

.info-section h2 {
  font-size: 1.75rem;
  color: #e9d5ff;
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.info-card {
  background: rgba(30, 20, 50, 0.45);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.info-card h3 {
  color: #c084fc;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== TIPS ===== */
.tips-section {
  padding: 2rem 0 3rem;
}

.tips-section h2 {
  font-size: 1.75rem;
  color: #e9d5ff;
  margin-bottom: 1.25rem;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 720px;
}

.tips-list li {
  padding-left: 1.5rem;
  position: relative;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tips-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #a855f7;
  font-size: 0.8rem;
  top: 0.15rem;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(15, 10, 26, 0.7);
  backdrop-filter: blur(8px);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    order: -1;
  }

  .resin-droplet {
    width: 100px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-list {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .calc-form,
  .results-panel {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.site-utility-links {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 0.9rem;
}

.site-utility-links a {
  color: inherit;
  opacity: 0.75;
}
