/* ============================================================
   LANDING — Nayandi AI Homepage (Matching TheQuills-ai design)
   hero · stats · problem · solution · product · technology · validation · cta
   ============================================================ */

/* Landing has a transparent nav that becomes opaque on scroll */
nav{
  background:transparent;
  border-bottom:1px solid transparent;
  backdrop-filter:none;
  transition:background 0.3s,border-color 0.3s,backdrop-filter 0.3s;
}
nav.scrolled{
  background:rgba(6,9,14,0.44);
  backdrop-filter:blur(16px);
  border-bottom-color:var(--rule);
}

/* ── HERO ── */
.hero{
  min-height:100vh;
  display:flex;flex-direction:column;justify-content:space-between;
  border-bottom:1px solid var(--rule);
  position:relative;overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;z-index:0; width: 100%;
  height:100%;object-fit:cover; margin-left: auto; filter: brightness(0.7);
}
.hero-bg-sm{
  display:none;
}
.hero-overlay{
  position:absolute;inset:0;z-index:0;
  background:
    linear-gradient(to bottom,rgba(6,9,14,0.55) 0%,rgba(6,9,14,0.28) 50%,rgba(6,9,14,0.94) 100%),
    linear-gradient(to right,rgba(6,9,14,0.7) 0%,transparent 65%);
}
.hero-content{
  position:relative;z-index:2;padding:160px 52px 80px;
}
.hero-eyebrow{
  font-family:var(--mono);font-size:14px;letter-spacing:0.2em;
  text-transform:uppercase;color:var(--accent);
  display:flex;align-items:center;gap:14px;margin-bottom:40px;
}
.hero-eyebrow::before{content:'';width:32px;height:1px;background:var(--accent)}
.hero h1{
  font-family:var(--sans);
  font-size:clamp(52px,7vw,98px);font-weight:800;
  line-height:1.1;letter-spacing:-0.03em;
  max-width:820px;margin-bottom:40px;
}
.hero h1 em{font-style:italic;color:var(--accent)}
.hero-subtitle{
  font-size:16px;color:var(--text-mid);font-weight:400;
  max-width:480px;line-height:1.75;margin-bottom:32px;
}
.hero-features{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:40px;
}
.hero-feature{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
  font-size:16px;
}
.hero-feature svg{
  width:24px;
  height:24px;
  color:var(--accent);
  flex-shrink:0;
}
.hero-actions{display:flex;gap:16px;align-items:center}

/* ── STATS (TheQuills style: grid with border-right separators, no cards) ── */
.stats{
  display:grid;grid-template-columns:repeat(4,1fr);
  border-bottom:1px solid var(--rule);
}
.stat-item{padding:64px 52px;border-right:1px solid var(--rule-light)}
.stat-item:last-child{border-right:none}
.stat-num{
  font-family:var(--sans);font-size:clamp(52px,5vw,72px);font-weight:800;
  color:var(--text);line-height:1;margin-bottom:12px;letter-spacing:-0.03em;
}
.stat-label{
  font-family:var(--mono);font-size:14px;letter-spacing:0.18em;
  text-transform:uppercase;color:var(--text-dim);
}

/* ── PROBLEM SECTION (Editorial style with visual effects) ── */
.problem{border-bottom:1px solid var(--rule)}
.problem-container{
  display:grid;grid-template-columns:1fr 1fr;min-height:600px;
}
.problem-header{
  padding:80px 64px;display:flex;flex-direction:column;justify-content:center;
}
.problem-visual{
  background:var(--bg2);position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;min-height:600px;
}
.problem-visual-bg{
  position:absolute;inset:0;z-index:0;
  width:100%;height:100%;object-fit:cover;
  opacity:0.6;
}
/* Grid background effect */
.problem-grid-bg{
  position:absolute;inset:0;z-index:1;
  background-image:
    linear-gradient(rgba(58,170,210,0.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(58,170,210,0.06) 1px,transparent 1px);
  background-size:40px 40px;
}
/* HUD panel with metrics */
.problem-hud-panel{
  position:absolute;bottom:24px;right:24px;z-index:2;
  border:1px solid rgba(58,170,210,0.22);
  padding:24px 28px;width:320px;
  background:rgba(7,8,10,0.75);
  backdrop-filter:blur(8px);
}
.php-title{
  font-family:var(--mono);font-size:14px;letter-spacing:0.2em;
  color:var(--accent);margin-bottom:16px;
  display:flex;align-items:center;gap:8px;
  text-transform:uppercase;
}
.php-title::before{
  content:'';width:6px;height:6px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 8px var(--accent-bright);
  animation:blink 1.5s infinite;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:0.3}}
.php-row{
  display:flex;justify-content:space-between;
  font-family:var(--mono);font-size:14px;
  padding:8px 0;border-bottom:1px solid rgba(255,255,255,0.06);
  color:var(--text-mid);
}
.php-row:last-child{border-bottom:none}
.php-val{color:var(--text);font-weight:600}

/* Problem metrics on left side */
.problem-metrics{display:flex;flex-direction:column;gap:0}
.problem-metric{
  display:flex;align-items:center;gap:36px;
  padding:20px 0;border-bottom:1px solid var(--rule-light);
}
.problem-metric:first-child{border-top:1px solid var(--rule-light)}
.pm-icon{font-size:32px;min-width:48px;text-align:center}
.pm-content{flex:1}
.pm-val{
  font-family:var(--sans);font-size:40px;font-weight:800;
  color:var(--text);letter-spacing:-0.02em;margin-bottom:8px;line-height:1;
}
.pm-label{
  font-family:var(--mono);font-size:14px;letter-spacing:0.14em;
  text-transform:uppercase;color:var(--text-dim);line-height:1.6;
}
.pm-desc{
  font-size:14px;color:var(--text-mid);line-height:1.6;margin-top:12px;
}
.pm-source{
  font-family:var(--mono);font-size:14px;letter-spacing:0.08em;
  color:var(--text-dim);opacity:0.7;margin-top:8px;
}

/* ── SOLUTION SECTION (3-column grid like TheQuills solutions) ── */
.solution{border-bottom:1px solid var(--rule)}
.solution-header{padding:80px 52px 56px;border-bottom:1px solid var(--rule)}
.solution-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.solution-card{
  padding:52px;border-right:1px solid var(--rule-light);
  transition:background 0.3s;
}
.solution-card:last-child{border-right:none}
.solution-card:hover{background:rgba(255,255,255,0.02)}
.sol-num{
  font-family:var(--mono);font-size:14px;letter-spacing:0.15em;
  color:var(--text-dim);margin-bottom:32px;
  padding-bottom:20px;border-bottom:1px solid var(--rule-light);
}
.sol-vis{
  height:310px;background:var(--bg2);
  margin-bottom:32px;display:flex;align-items:center;justify-content:start;
  font-size:52px;position:relative;overflow:hidden;
}
.sol-vis img{
  height:100%;object-fit:cover;
}
.solution-card h3{
  font-family:var(--sans);
  font-size:22px;font-weight:700;margin-bottom:12px;letter-spacing:-0.01em;
}
.solution-card p{font-size:14px;color:var(--text-dim);line-height:1.7;font-weight:400}

/* ── PRODUCT SECTION (Editorial style split) ── */
.product{border-bottom:1px solid var(--rule)}
.product-container{
  display:grid;grid-template-columns:1fr 1fr;min-height:600px;
}
.product-content{
  padding:80px 64px;display:flex;flex-direction:column;justify-content:center;
}
.product-visual{
  background:var(--bg2);position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  padding:60px;
}
.product-screenshot{
  width:60%;height:auto;
}
.product-features{display:flex;flex-direction:column;gap:0;margin-top:48px}
.product-feature{
  display:flex;align-items:center;gap:36px;
  padding:20px 0;border-bottom:1px solid var(--rule-light);
}
.product-feature:first-child{border-top:1px solid var(--rule-light)}
.pf-icon{
  min-width:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--accent);
}
.pf-icon svg{
  width:32px;
  height:32px;
}
.pf-content h4{
  font-size:16px;font-weight:600;margin-bottom:8px;line-height:1.3;
}
.pf-content p{
  font-size:14px;line-height:1.6;color:var(--text-mid);
}

/* ── HOW IT WORKS (4-step process like TheQuills) ── */
.how-it-works{border-bottom:1px solid var(--rule)}
.how-header{padding:80px 52px 56px;text-align:center;border-bottom:1px solid var(--rule)}
.how-steps{display:grid;grid-template-columns:repeat(4,1fr)}
.how-step{padding:52px 48px;border-right:1px solid var(--rule-light)}
.how-step:last-child{border-right:none}
.how-step-num{
  font-family:var(--sans);
  font-size:72px;font-weight:900;
  color:rgba(238,236,234,0.05);line-height:1;
  margin-bottom:8px;letter-spacing:-0.04em;
}
.how-step-label{
  font-family:var(--mono);font-size:14px;letter-spacing:0.15em;
  text-transform:uppercase;color:var(--accent);margin-bottom:16px;
}
.how-step h4{
  font-family:var(--sans);
  font-size:18px;font-weight:700;margin-bottom:12px;letter-spacing:-0.01em;
}
.how-step p{font-size:14px;color:var(--text-dim);line-height:1.7}

/* ── TECHNOLOGY/TRACK RECORD (4-column grid like stats) ── */
.technology{border-bottom:1px solid var(--rule)}
.tech-header{padding:80px 52px 56px;text-align:center;border-bottom:1px solid var(--rule)}
.tech-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.tech-card{
  padding:52px;border-right:1px solid var(--rule-light);
  text-align:center;transition:background 0.3s;
}
.tech-card:last-child{border-right:none}
.tech-card:hover{background:rgba(255,255,255,0.02)}
.tech-metric{
  font-size:clamp(42px,4vw,56px);
  font-weight:800;
  color:var(--text);
  margin-bottom:12px;
  line-height:1;
  letter-spacing:-0.02em;
}
.tech-label{
  font-family:var(--mono);
  font-size:14px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent);
  line-height:1.4;
  margin-bottom:16px;
  font-weight:600;
}
.tech-desc{
  font-size:14px;
  line-height:1.5;
  color:var(--text-mid);
}

/* ── VALIDATION (Featured + grid) ── */
.validation{border-bottom:1px solid var(--rule)}
.validation-container{max-width:1440px;margin:0 auto}
.validation-header{
  padding:80px 52px 48px;text-align:center;border-bottom:1px solid var(--rule);
}
.validation-featured{
  padding:64px 52px;
  border-bottom:1px solid var(--rule);
  text-align:center;
  background:rgba(58,170,210,0.02);
}
.validation-featured h3{
  font-size:clamp(28px,3vw,42px);
  font-weight:800;
  margin-bottom:12px;
  letter-spacing:-0.02em;
}
.validation-featured .role{
  font-family:var(--mono);
  font-size:14px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:24px;
}
.validation-featured .quote{
  font-size:clamp(20px,2vw,28px);
  font-weight:600;
  line-height:1.4;
  color:var(--text);
  font-style:italic;
}
.validation-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.validation-card{
  padding:48px 44px;
  border-right:1px solid var(--rule-light);
  transition:background 0.3s;
}
.validation-card:last-child{border-right:none}
.validation-card:hover{background:rgba(255,255,255,0.02)}
.validation-card h4{
  font-size:16px;
  font-weight:700;
  margin-bottom:8px;
  letter-spacing:-0.01em;
}
.validation-card .title{
  font-family:var(--mono);
  font-size:14px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:12px;
}
.validation-card p{
  font-size:14px;
  line-height:1.5;
  color:var(--text-mid);
}

/* ── CTA SECTION ── */
.cta{
  padding:120px 52px;
  text-align:center;
  border-bottom:1px solid var(--rule);
}
.cta-container{
  max-width:800px;
  margin:0 auto;
}
.cta h2{
  font-size:clamp(36px,4vw,56px);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-0.02em;
  margin-bottom:24px;
}
.cta h2 em{
  font-style:italic;
  color:var(--accent);
}
.cta p{
  font-size:16px;
  line-height:1.75;
  color:var(--text-mid);
  margin-bottom:48px;
}
.cta-actions{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

/* ── PORTRAIT ORIENTATION (tablets/phones in portrait) ── */
@media(orientation:portrait){
  .hero-bg{display:none}
  .hero-bg-sm{display:block;position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;filter:brightness(0.4)}
}

/* ── MOBILE RESPONSIVE ── */
@media(max-width:1024px){
  .hero-content{padding:140px 32px 60px}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat-item{padding:48px 32px}
  .stat-item:nth-child(2n){border-right:none}
  .stat-item:nth-child(n+3){border-top:1px solid var(--rule-light)}
  .problem-container{grid-template-columns:1fr}
  .problem-visual{min-height:420px}
  .problem-header{padding:60px 40px}
  .solution-grid{grid-template-columns:repeat(2,1fr)}
  .solution-card:nth-child(2n){border-right:none}
  .solution-card{border-bottom:1px solid var(--rule)}
  .product-container{grid-template-columns:1fr}
  .product-content{padding:60px 40px}
  .product-screenshot{
    width:100%;
  }
  .how-steps{grid-template-columns:repeat(2,1fr)}
  .how-step:nth-child(2n){border-right:none}
  .how-step{border-bottom:1px solid var(--rule);padding:40px 36px}
  .tech-grid{grid-template-columns:repeat(2,1fr)}
  .tech-card:nth-child(2n){border-right:none}
  .tech-card{border-bottom:1px solid var(--rule-light)}
  .validation-grid{grid-template-columns:repeat(2,1fr)}
  .validation-card:nth-child(2n){border-right:none}
  .validation-card{border-bottom:1px solid var(--rule-light)}
  .problem-hud-panel{width:280px;padding:20px 22px}
}

@media(max-width:768px){
  .hero-bg{display:none}
  .hero-bg-sm{display:block;position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;filter:brightness(0.4)}
  .hero-content{padding:120px 24px 48px}
  .hero h1{font-size:clamp(36px,8vw,52px)}
  .hero-subtitle{font-size:16px}
  .hero-eyebrow{font-size:14px}
  .hero-feature{font-size:14px}
  .hero-feature svg{width:20px;height:20px}
  .hero-actions{flex-wrap:wrap;gap:12px}
  .stats{grid-template-columns:1fr 1fr}
  .stat-item{padding:32px 24px}
  .stat-num{font-size:36px}
  .stat-label{font-size:14px}
  .problem-header{padding:48px 24px}
  .problem-visual{min-height:320px}
  .problem-hud-panel{width:auto;left:16px;right:16px;bottom:16px;padding:16px 18px}
  .php-title{font-size:14px}
  .php-row{font-size:14px}
  .problem-metrics{gap:0}
  .pm-val{font-size:28px}
  .pm-label{font-size:14px}
  .pm-desc{font-size:14px; margin-bottom: 12px;}
  .pm-source{font-size:14px}
  .sec-label{font-size:14px}
  .solution-grid{grid-template-columns:1fr}
  .solution-card{border-right:none;padding:36px 24px}
  .sol-num{font-size:14px}
  .sol-vis img{width:100%;height:auto;object-fit:cover}
  .product-container{grid-template-columns:1fr}
  .product-content{padding:48px 24px}
  .product-visual{padding:32px 24px}
  .pf-content p{font-size:14px}
  .how-steps{grid-template-columns:1fr}
  .how-step{padding:32px 24px}
  .how-step-label{font-size:14px}
  .how-step p{font-size:14px}
  .tech-grid{grid-template-columns:1fr}
  .tech-card{padding:36px 24px}
  .tech-label{font-size:14px}
  .tech-desc{font-size:14px}
  .validation-grid{grid-template-columns:1fr}
  .validation-card{padding:32px 24px}
  .validation-featured{padding:48px 24px}
  .validation-featured .role{font-size:14px}
  .validation-card .title{font-size:14px}
  .validation-card p{font-size:14px}
  .validation-header,.solution-header,.how-header,.tech-header{padding:48px 24px 32px}
  .cta{padding:60px 24px}
}

@media(max-width:480px){
  .hero-content{padding:120px 20px 48px}
  .hero h1{font-size:38px;line-height:1.05}
  .hero-subtitle{font-size:16px}
  .hero-eyebrow{font-size:14px}
  .hero-actions{flex-direction:column;width:100%;gap:12px}
  .hero-actions .btn-solid,.hero-actions .btn-ghost{
    width:100%;padding:16px 24px;font-size:14px;
  }
  .stats{grid-template-columns:1fr 1fr;gap:0}
  .stat-item{padding:24px 16px}
  .stat-num{font-size:32px}
  .stat-label{font-size:14px}
  .php-title{font-size:14px}
  .php-row{font-size:14px}
  .pm-label{font-size:14px}
  .pm-desc{font-size:14px}
  .pm-source{font-size:14px}
  .sec-label{font-size:14px}
  .sol-num{font-size:14px}
  .pf-content p{font-size:14px}
  .how-step-label{font-size:14px}
  .how-step p{font-size:14px}
  .tech-label{font-size:14px}
  .tech-desc{font-size:14px}
  .validation-featured .role{font-size:14px}
  .validation-card .title{font-size:14px}
  .validation-card p{font-size:14px}
  .solution-card,.how-step,.tech-card,.validation-card,.problem-header,.product-content{padding:32px 20px}
  .validation-featured{padding:36px 20px}
  .validation-header,.solution-header,.how-header,.tech-header{padding:48px 20px 32px}
  .sol-vis{height:auto;min-height:200px;font-size:42px}
  .sol-vis img{width:100%;height:auto;object-fit:cover}
}
