/* ============================================================
   AQIQ SAFFRON — Design System v2
   Modern · Professional · B2B Credible
   ============================================================ */

:root{
  /* Backgrounds */
  --bg:           #F8F6F9;
  --surface:      #FFFFFF;
  --surface-2:    #F2EDF5;
  --surface-3:    #E7DEED;
  --dark:         #2A2130;
  --dark-2:       #362A3D;
  --dark-3:       #473750;

  /* Text */
  --ink:          #2C2431;
  --ink-2:        #3A3041;
  --ink-soft:     #5A4C65;
  --ink-mute:     #83748F;
  --ink-faint:    #A99CB2;
  --on-dark:      #F8F5FA;
  --on-dark-soft: #D8CFDE;
  --on-dark-mute: #B5A8C0;
  --on-dark-faint:#8F7F9D;

  /* Accent — saffron orange */
  --accent:       #E55A26;
  --accent-deep:  #BF431A;
  --accent-soft:  #F8DCCF;
  --accent-bg:    #FFF4EE;

  /* Borders */
  --line:         #E3DAE9;
  --line-soft:    #F2ECF5;
  --line-strong:  #CFC2D9;
  --line-dark:    rgba(255,255,255,0.12);
  --line-dark-2:  rgba(255,255,255,0.2);

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --gutter:   clamp(20px, 5vw, 56px);
  --section:  clamp(72px, 10vw, 128px);
  --section-sm: clamp(48px, 7vw, 88px);

  /* Curves */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(9,9,11,0.04), 0 1px 3px rgba(9,9,11,0.06);
  --shadow-md: 0 4px 6px -1px rgba(9,9,11,0.06), 0 2px 4px -2px rgba(9,9,11,0.04);
  --shadow-lg: 0 10px 24px -6px rgba(9,9,11,0.10), 0 4px 8px -4px rgba(9,9,11,0.06);
  --shadow-xl: 0 24px 48px -16px rgba(9,9,11,0.16);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}

body{
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
}

h1,h2,h3,h4,h5{
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
h1{letter-spacing:-0.035em;font-weight:600}
h2{letter-spacing:-0.03em;font-weight:600}

.eyebrow{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}

a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}

.wrap{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* Override legacy decorative elements from v1 templates */
.section-num{display:none !important}
.marquee{display:none !important}
em{font-style: normal; font-weight: inherit; color: inherit; font-family: inherit}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid{
  background: rgba(248, 246, 249, 0.9);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark{width: 28px; height: 28px; flex-shrink: 0}
.brand-logo{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(9, 9, 11, 0.08);
  box-shadow: 0 6px 16px rgba(9, 9, 11, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brand-name{
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover .brand-logo{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(9, 9, 11, 0.16);
}

.nav-links{display: flex; gap: 4px; align-items: center}
.nav-links a{
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover{color: var(--ink); background: var(--surface-2)}
.nav-links a[aria-current="page"]{color: var(--ink); background: var(--surface-2)}

.nav-right{display: flex; align-items: center; gap: 10px}

.lang-switch{position: relative}
.lang-toggle{
  background: none;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: var(--sans);
}
.lang-toggle:hover{border-color: var(--line-strong); color: var(--ink)}
.lang-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.18s var(--ease-soft);
  box-shadow: var(--shadow-lg);
}
.lang-menu.open{opacity: 1; visibility: visible; transform: translateY(0)}
.lang-menu button{
  display: flex;
  width: 100%;
  background: none;
  border: 0;
  padding: 9px 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  align-items: center;
  justify-content: space-between;
  border-radius: var(--r-xs);
  transition: background 0.15s ease;
}
.lang-menu button:hover{background: var(--surface-2)}
.lang-menu button .code{font-size: 11px; color: var(--ink-mute); font-weight: 500}

.nav-cta{
  background: var(--ink);
  color: var(--on-dark);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background 0.2s ease;
  white-space: nowrap;
  border: 1px solid var(--ink);
  font-family: var(--sans);
}
.nav-cta:hover{background: var(--dark-2)}

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  width: 36px;
  height: 36px;
  color: var(--ink);
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary{background: var(--ink); color: var(--on-dark); border-color: var(--ink)}
.btn-primary:hover{background: var(--dark-2); border-color: var(--dark-2)}
.btn-accent{background: var(--accent); color: var(--on-dark); border-color: var(--accent)}
.btn-accent:hover{background: var(--accent-deep); border-color: var(--accent-deep)}
.btn-ghost{background: transparent; color: var(--ink); border-color: var(--line-strong)}
.btn-ghost:hover{background: var(--surface-2); border-color: var(--ink-soft)}
.btn-light{background: var(--surface); color: var(--ink); border-color: var(--surface)}
.btn-light:hover{background: var(--surface-2); border-color: var(--surface-2)}
.btn-dark-ghost{background: transparent; color: var(--on-dark); border-color: var(--line-dark-2)}
.btn-dark-ghost:hover{background: rgba(255,255,255,0.08); border-color: var(--on-dark-soft)}
.btn .arrow{transition: transform 0.2s ease; font-size: 16px; line-height: 0.9}
.btn:hover .arrow{transform: translateX(3px)}
.btn-sm{padding: 9px 14px; font-size: 13px}
.btn-lg{padding: 14px 24px; font-size: 15px}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.img-slot{
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-md);
}
.img-slot > img{width: 100%; height: 100%; object-fit: cover; display: block}
.img-placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}
.img-placeholder::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%);
  opacity: 0.6;
}
.img-placeholder-tag{
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  background: var(--surface);
  padding: 6px 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
}

.ar-1{aspect-ratio:1/1}
.ar-43{aspect-ratio:4/3}
.ar-34{aspect-ratio:3/4}
.ar-45{aspect-ratio:4/5}
.ar-169{aspect-ratio:16/9}
.ar-32{aspect-ratio:3/2}

/* ============================================================
   SECTION & HEAD
   ============================================================ */
.section{padding: var(--section) 0; position: relative}

.section-head{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
  max-width: 720px;
}
.section-head .eyebrow{margin-bottom: 4px}
.section-head h2{
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-intro{
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
  margin-top: 8px;
}

.section-head-row{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head-row .section-intro{max-width: 44ch; margin-top:0}

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */
.page-hero{
  padding: 140px var(--gutter) 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
}
.page-hero h1{
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 16ch;
}
.page-hero-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.page-hero-meta .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.page-hero-lede{
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}
.page-hero-aside{
  padding-bottom: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 36ch;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-style: normal;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about{background: var(--surface)}
.about-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-body{padding-top: 8px}
.about-body p{
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
}
.about-body p:first-child::first-letter{
  font-size: inherit;
  float: none;
  padding: 0;
  color: inherit;
  font-weight: inherit;
}

.about-side{position: sticky; top: 100px}
.about-card{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}
.about-card::before, .about-card::after{display:none}
.about-card-title{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--sans);
}
.fact{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.fact:last-child{border-bottom: 0; padding-bottom: 0}
.fact-label{color: var(--ink-mute); font-weight: 400}
.fact-value{color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: 14px}

/* ============================================================
   STATS
   ============================================================ */
.stats{background: var(--dark); color: var(--on-dark); padding: 100px 0}
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat{
  border-top: 1px solid var(--line-dark-2);
  padding-top: 20px;
}
.stat-num{
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--on-dark);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--sans);
}
.stat-num em{color: var(--accent); font-style: normal; font-weight: inherit}
.stat-label{
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 6px;
}
.stat-desc{font-size: 14px; color: var(--on-dark-mute); line-height: 1.5}

/* ============================================================
   PROCESS — 5 cards
   ============================================================ */
.process{background: var(--bg)}
.process-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.process-grid::before{display: none}
.step{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-align: left;
}
.step:hover{border-color: var(--line-strong); transform: translateY(-2px)}
.step-circle{
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px 0;
  position: relative;
  transition: all 0.2s ease;
}
.step-circle svg{width: 22px; height: 22px; color: var(--ink)}
.step:hover .step-circle{background: var(--ink); border-color: var(--ink)}
.step:hover .step-circle svg{color: var(--on-dark)}
.step-num{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: var(--on-dark);
  font-size: 11px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  font-family: var(--sans);
}
.step-title{font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--ink)}
.step-desc{font-size: 14px; color: var(--ink-mute); line-height: 1.55}

/* Vertical timeline (process page) */
.timeline{position: relative; padding: 0}
.timeline::before{display: none}
.t-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.t-row:last-child{margin-bottom: 0; padding-bottom: 0; border-bottom: 0}
.t-row:nth-child(even) .t-text{order: 1; text-align: left; padding: 0}
.t-row:nth-child(even) .t-img{order: 2; padding: 0}
.t-row:nth-child(odd) .t-text{order: 2; text-align: left; padding: 0}
.t-row:nth-child(odd) .t-img{order: 1; padding: 0}
.t-marker{display: none}
.t-text h3{
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.t-text p{font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 50ch; margin-bottom: 14px}
.t-eyebrow{
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.t-eyebrow::before{
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.t-img .img-slot{width: 100%; aspect-ratio: 4/3}

/* ============================================================
   GRADES cards
   ============================================================ */
.grades{background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line)}
.grades .section-head h2{color: var(--ink)}
.grades-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grade{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.grade:hover{border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md)}
.grade-thread{display: none}
.grade-rank{font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-bottom: 24px}
.grade-name{
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.grade-desc{font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; flex-grow: 1}
.grade-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}
.grade-meta .badge{
  background: var(--accent-bg);
  color: var(--accent-deep);
  padding: 3px 8px;
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Products detailed rows */
.grade-detail{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.grade-detail:first-of-type{padding-top: 40px}
.grade-detail:last-child{border-bottom: 0}
.grade-detail:nth-child(even) .grade-detail-img{order: 2}
.grade-detail-img .img-slot{aspect-ratio: 4/5}
.grade-detail h3{
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.grade-detail p{font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 16px; max-width: 52ch}

.spec-list{
  margin: 24px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.spec-list dt, .spec-list dd{
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.spec-list dt{display: inline-block; width: 50%; color: var(--ink-mute); font-weight: 500; text-transform: none; letter-spacing: 0}
.spec-list dd{display: inline-block; width: 50%; font-weight: 500; color: var(--ink); font-family: var(--sans); font-size: 14px}
.spec-list dt:last-of-type, .spec-list dd:last-of-type{border-bottom: 0}

.grade-cta{display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars{background: var(--bg)}
.pillars-grid{display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px}
.pillar{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar:hover{border-color: var(--line-strong); transform: translateY(-2px)}
.pillar-icon{
  width: 40px;
  height: 40px;
  color: var(--ink);
  margin-bottom: 24px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  padding: 9px;
}
.pillar-title{font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--ink)}
.pillar-desc{font-size: 14px; line-height: 1.6; color: var(--ink-soft)}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pullquote{
  background: var(--surface);
  padding: var(--section) var(--gutter);
  text-align: center;
}
.pullquote::before, .pullquote::after{display: none}
.pullquote p{
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 24ch;
  margin: 0 auto 20px;
  color: var(--ink);
}
.pullquote p em{color: var(--accent); font-style: normal; font-weight: inherit}
.pullquote-cite{font-size: 13px; font-weight: 500; color: var(--ink-mute); text-transform: none; letter-spacing: 0}

/* ============================================================
   REACH
   ============================================================ */
.reach{background: var(--surface); border-top: 1px solid var(--line)}
.reach-grid{display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center}
.reach-body p{font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 18px; max-width: 48ch}
.reach-list{
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.reach-list li{
  list-style: none;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.reach-list li::before{
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.reach-map{
  position: relative;
  aspect-ratio: 5/4;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid var(--line);
}
.reach-map svg{width: 100%; height: 100%}
.reach-dot{fill: var(--accent); animation: none}

/* ============================================================
   CERTS
   ============================================================ */
.certs{background: var(--bg); padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line)}
.certs-head{text-align: left; margin-bottom: 40px; max-width: 600px}
.certs-head .eyebrow{display: block; margin-bottom: 8px}
.certs-head h3{font-size: 24px; font-weight: 600; letter-spacing: -0.02em}
.certs-row{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cert-badge{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  text-align: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease;
}
.cert-badge:hover{border-color: var(--line-strong)}
.cert-mark{
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
}
.cert-mark svg{
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cert-mark::after{display: none}

/* ============================================================
   FORMS
   ============================================================ */
.form{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
}
.form-row{display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px}
.form-row.full{grid-template-columns: 1fr}
.form-row.thirds{grid-template-columns: 1fr 1fr 1fr}
.field label{
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder{color: var(--ink-faint)}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(9,9,11,0.05);
}
.field textarea{resize: vertical; min-height: 80px; font-family: var(--sans)}
.field select{
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2371717A' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-actions{
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.form-note{font-size: 13px; color: var(--ink-mute); max-width: 36ch; line-height: 1.5}

.form-tabs{
  display: inline-flex;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.form-tab{
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  border-radius: var(--r-sm);
  transition: background 0.15s ease, color 0.15s ease;
  text-transform: none;
  letter-spacing: 0;
}
.form-tab:hover{color: var(--ink)}
.form-tab.active{background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm)}
.form-pane{display: none}
.form-pane.active{display: block}

/* ============================================================
   CONTACT
   ============================================================ */
.contact{background: var(--bg)}
.contact-grid{display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start}
.contact-info h3{
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.05;
}
.contact-info p{font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; max-width: 42ch}
.contact-meta{margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line)}
.contact-meta dt{font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-bottom: 4px}
.contact-meta dd{font-size: 15px; font-weight: 500; margin-bottom: 20px; color: var(--ink); font-family: var(--sans)}

/* ============================================================
   RECIPES
   ============================================================ */
.recipes-grid{display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px}
.recipe{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.recipe:hover{
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.recipe-img{aspect-ratio: 4/3; position: relative; overflow: hidden}
.recipe-img .img-placeholder{border-radius: 0}
.recipe-body{padding: 24px; flex-grow: 1; display: flex; flex-direction: column}
.recipe-cuisine{
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}
.recipe h3{font-size: 19px; font-weight: 600; margin-bottom: 10px; line-height: 1.25; letter-spacing: -0.015em}
.recipe-desc{font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 20px; flex-grow: 1}
.recipe-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
}
.recipe-meta strong{font-weight: 600; color: var(--accent); font-family: var(--sans)}

/* ============================================================
   AUTH (Portal)
   ============================================================ */
.auth{min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr}
.auth-side{
  background: var(--dark);
  color: var(--on-dark);
  padding: 60px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-side::before{display: none}
.auth-brand{
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  letter-spacing: -0.01em;
  font-family: var(--sans);
}
.auth-brand svg{width: 28px; height: 28px; color: var(--accent)}
.auth-quote{
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 24px;
  color: var(--on-dark);
}
.auth-quote em{color: var(--accent); font-style: normal; font-weight: inherit}
.auth-cite{font-size: 13px; font-weight: 500; color: var(--on-dark-mute); text-transform: none; letter-spacing: 0}
.auth-foot{font-size: 12px; color: var(--on-dark-faint); line-height: 1.6}
.auth-main{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--gutter);
  background: var(--bg);
}
.auth-main h1{
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.auth-main > p{font-size: 15px; color: var(--ink-soft); max-width: 40ch; margin-bottom: 36px; line-height: 1.55}
.auth-form{max-width: 420px; width: 100%}
.auth-form .field{margin-bottom: 18px}
.auth-form .btn{width: 100%; justify-content: center; margin-top: 4px; padding: 12px 20px; font-size: 14px}
.auth-foot-links{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-mute);
}
.auth-foot-links a{color: var(--ink); font-weight: 500}

/* ============================================================
   VERIFY
   ============================================================ */
.verify-hero{
  padding: 140px var(--gutter) 80px;
  background: var(--bg);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.verify-hero h1{
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin: 20px auto 20px;
  line-height: 1;
}
.verify-hero p{font-size: 17px; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 40px; line-height: 1.55}
.verify-form{
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.verify-form input{
  flex-grow: 1;
  background: transparent;
  border: 0;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.verify-form input::placeholder{color: var(--ink-faint)}
.verify-form input:focus{outline: none}
.verify-form button{
  background: var(--ink);
  color: var(--on-dark);
  border: 0;
  padding: 0 24px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: background 0.2s ease;
}
.verify-form button:hover{background: var(--dark-2)}

.verify-sample{
  max-width: 720px;
  margin: 60px auto 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  box-shadow: var(--shadow-md);
}
.verify-status{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.verify-check{
  width: 36px;
  height: 36px;
  background: #16A34A;
  color: var(--on-dark);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.verify-status div span{font-size: 12px; font-weight: 500; color: #16A34A; display: block; margin-bottom: 2px; text-transform: none; letter-spacing: 0}
.verify-status div strong{font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ink)}
.verify-specs{display: grid; grid-template-columns: 1fr 1fr; gap: 0}
.verify-specs > div{padding: 14px 0; border-bottom: 1px solid var(--line)}
.verify-specs > div:nth-child(odd){padding-right: 24px}
.verify-specs > div:nth-child(even){padding-left: 24px; border-left: 1px solid var(--line)}
.verify-specs span{display: block; font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-bottom: 4px; text-transform: none; letter-spacing: 0}
.verify-specs strong{font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink)}

/* ============================================================
   FAQ
   ============================================================ */
.faq{max-width: 820px; margin: 0 auto}
.faq-item{border-bottom: 1px solid var(--line)}
.faq-q{
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
  gap: 24px;
  letter-spacing: -0.01em;
}
.faq-q:hover{color: var(--accent)}
.faq-q-plus{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.faq-q-plus::before, .faq-q-plus::after{
  content: '';
  position: absolute;
  background: var(--ink);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.faq-q-plus::before{width: 12px; height: 1.5px}
.faq-q-plus::after{width: 1.5px; height: 12px; transition: transform 0.3s var(--ease), opacity 0.3s ease}
.faq-item.open .faq-q-plus::after{transform: translate(-50%, -50%) rotate(90deg); opacity: 0}
.faq-a{max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease)}
.faq-item.open .faq-a{max-height: 400px}
.faq-a p{padding: 0 0 24px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 64ch}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{background: var(--dark); color: var(--on-dark); padding: 80px var(--gutter) 32px}
.footer-grid{display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto 56px}
.footer-brand{
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--sans);
  color: var(--on-dark);
  letter-spacing: -0.01em;
}
.footer-brand svg{width: 28px; height: 28px; color: var(--accent)}
.footer-brand-logo{width: 44px; height: 44px; border-radius: 50%; display: block; flex-shrink: 0; object-fit: cover}
.footer-desc{font-size: 14px; line-height: 1.6; color: var(--on-dark-mute); max-width: 36ch; margin-bottom: 20px}
.footer-col h5{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 16px;
}
.footer-col a, .footer-col li{
  display: block;
  font-size: 14px;
  line-height: 2;
  color: var(--on-dark-mute);
  transition: color 0.2s ease;
  list-style: none;
}
.footer-col a:hover{color: var(--on-dark)}
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--on-dark-faint);
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-bottom a{color: var(--on-dark-mute)}
.footer-bottom a:hover{color: var(--on-dark)}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in{opacity: 1; transform: translateY(0)}
@keyframes fadeUp{from{opacity:0; transform:translateY(16px)}to{opacity:1; transform:translateY(0)}}

/* ============================================================
   RTL
   ============================================================ */
[dir="rtl"]{font-family: 'Inter', 'Tahoma', Arial, sans-serif}
[dir="rtl"] .btn .arrow{transform: rotate(180deg)}
[dir="rtl"] .btn:hover .arrow{transform: rotate(180deg) translateX(3px)}
[dir="rtl"] .reach-list li::before{margin-left: 10px; margin-right: 0}
[dir="rtl"] .page-hero-aside{border-left: 0; border-right: 2px solid var(--accent); padding-left: 0; padding-right: 20px}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px){
  .page-hero-grid, .about-grid, .reach-grid, .contact-grid, .section-head-row{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-side{position: static}
  .grades-grid{grid-template-columns: repeat(2, 1fr)}
  .pillars-grid{grid-template-columns: repeat(2, 1fr)}
  .stats-grid{grid-template-columns: repeat(2, 1fr); gap: 32px}
  .footer-grid{grid-template-columns: 1fr 1fr; gap: 40px}
  .process-grid{grid-template-columns: repeat(3, 1fr); gap: 16px}
  .grade-detail{grid-template-columns: 1fr; gap: 32px}
  .grade-detail:nth-child(even) .grade-detail-img{order: 0}
  .recipes-grid{grid-template-columns: repeat(2, 1fr); gap: 20px}
  .auth{grid-template-columns: 1fr}
  .auth-side{min-height: 280px; padding: 48px var(--gutter)}
  .t-row{grid-template-columns: 1fr; gap: 24px}
  .t-row:nth-child(odd) .t-text, .t-row:nth-child(even) .t-text{order: 2; padding: 0}
  .t-row:nth-child(odd) .t-img, .t-row:nth-child(even) .t-img{order: 1; padding: 0}
  .certs-row{grid-template-columns: repeat(3, 1fr)}
}
@media (max-width: 680px){
  .brand-logo{width: 52px; height: 52px}
  .brand-name{font-size: 20px}
  .nav-links{display: none}
  .nav-toggle{display: flex}
  .nav-right .nav-cta{display: none}
  .grades-grid, .pillars-grid, .recipes-grid{grid-template-columns: 1fr}
  .stats-grid{grid-template-columns: 1fr; gap: 32px}
  .reach-list{grid-template-columns: 1fr}
  .form{padding: 24px}
  .form-row{grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px}
  .footer-grid{grid-template-columns: 1fr; gap: 32px}
  .process-grid{grid-template-columns: 1fr 1fr; gap: 12px}
  .verify-specs{grid-template-columns: 1fr}
  .verify-specs > div:nth-child(even){padding-left: 0; border-left: 0}
  .verify-specs > div:nth-child(odd){padding-right: 0}
  .verify-sample{padding: 24px}
  .certs-row{grid-template-columns: repeat(2, 1fr)}
  .spec-list dt, .spec-list dd{display: block; width: 100%; padding: 10px 14px}
  .spec-list dt{border-bottom: 0; padding-bottom: 2px; color: var(--ink-mute); font-size: 12px}
  .spec-list dd{padding-top: 0; padding-bottom: 10px}
}
