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

:root {
  --sand: #C4A882;
  --sand-light: #E8DCC8;
  --sand-dark: #8B7355;
  --charcoal: #1C1917;
  --charcoal-mid: #292524;
  --warm-white: #FAFAF7;
  --amber: #D97706;
  --amber-light: #F59E0B;
  --stone-gray: #78716C;
  --stone-light: #A8A29E;
  --surface: #F5F0E8;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  font-weight: 700;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 113, 85, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--sand-dark); }

.site-header nav {
  display: flex;
  gap: 32px;
}

.site-header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--sand-dark); }

/* === HERO === */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--warm-white) 0%, #F0EBE0 60%, #E8DCC8 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 640px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--charcoal-mid);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-visual {
  display: flex;
  justify-content: flex-start;
}

/* Calculator Window */
.calc-window {
  width: 100%;
  max-width: 540px;
  background: var(--charcoal);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(28, 25, 23, 0.2), 0 8px 24px rgba(28, 25, 23, 0.15);
}

.calc-header {
  background: #292524;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.calc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.calc-dot.red { background: #FF5F57; }
.calc-dot.yellow { background: #FFBD2E; }
.calc-dot.green { background: #28C840; }

.calc-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-left: 6px;
  font-family: 'DM Sans', sans-serif;
}

.calc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-prompt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.prompt-icon {
  color: var(--sand);
  flex-shrink: 0;
  margin-top: 2px;
}

.calc-response {
  background: rgba(201, 168, 130, 0.1);
  border: 1px solid rgba(196, 168, 130, 0.25);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.response-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.response-item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.response-item strong { color: var(--sand); }
.response-item.accent { color: var(--amber-light); margin-top: 6px; }

.btn-sm {
  display: inline-block;
  background: var(--amber);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}

/* === HOW IT WORKS === */
.hiw {
  padding: 100px 0;
  background: var(--warm-white);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 16px;
}

.section-label.light { color: rgba(196, 168, 130, 0.7); }

.section-headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 64px;
  max-width: 560px;
}

.section-headline.light { color: var(--warm-white); }

.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--charcoal-mid);
  line-height: 1.65;
  max-width: 280px;
}

.step-connector {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--sand-light), var(--sand));
  margin-top: 24px;
  flex-shrink: 0;
}

/* === FEATURES === */
.features {
  padding: 100px 0;
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--warm-white);
  border: 1px solid rgba(124, 113, 85, 0.12);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #F0EBE0, #E8DCC8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand-dark);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--charcoal-mid);
  line-height: 1.65;
}

/* === CALCULATOR SECTION === */
.calculator-section {
  padding: 100px 0;
  background: var(--charcoal);
  position: relative;
}

.calc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.calc-info p {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 16px;
}

.calc-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.example-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(196, 168, 130, 0.7);
  border: 1px solid rgba(196, 168, 130, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  transition: all 0.2s;
}

.example-tag:hover {
  background: rgba(196, 168, 130, 0.1);
  color: var(--sand);
}

/* Chat Window */
.chat-window {
  background: #1C1917;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.chat-header {
  background: #292524;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.msg {
  font-size: 0.875rem;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 88%;
}

.msg.bot {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg.user {
  background: var(--amber);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* === SUPPLIERS === */
.suppliers-section {
  padding: 100px 0;
  background: var(--warm-white);
}

.suppliers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.suppliers-text p {
  font-size: 1rem;
  color: var(--charcoal-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

.supplier-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(124, 113, 85, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sand-dark);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--stone-gray);
}

.supplier-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sup-card {
  background: var(--surface);
  border: 1px solid rgba(124, 113, 85, 0.12);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sup-card-icon {
  width: 40px;
  height: 40px;
  background: var(--sand-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand-dark);
  flex-shrink: 0;
}

.sup-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.sup-card p {
  font-size: 0.875rem;
  color: var(--charcoal-mid);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, var(--warm-white) 0%, #F0EBE0 100%);
}

.closing-inner {
  max-width: 720px;
}

.closing-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 28px;
}

.closing-text p {
  font-size: 1.0625rem;
  color: var(--charcoal-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* === FOOTER === */
.site-footer {
  background: var(--charcoal);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--sand); }

.footer-bottom {
  padding-top: 28px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hiw-steps {
    flex-direction: column;
    gap: 40px;
  }

  .step-connector {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--sand-light), var(--sand));
    margin: 0;
  }

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

  .calc-split,
  .suppliers-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .site-header nav {
    display: none;
  }

  .hero-headline { font-size: 2.25rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 56px; }
  .hero-headline { font-size: 1.875rem; }
}