/* ============================================================
   YFY Connect — website styles
   Dark, techy, charcoal + glowing green. Hexagon brand motif.
   ============================================================ */

:root {
  --bg: #090D0B;
  --bg2: #0C120F;
  --surface: #111A15;
  --surface2: #16201B;
  --surface3: #1B2620;
  --line: rgba(255,255,255,0.09);
  --line2: rgba(255,255,255,0.055);
  --green-a: #0FAE5E;
  --green-b: #7CE05A;
  --green: #1FC56E;
  --green-soft: rgba(31,197,110,0.12);
  --green-ring: rgba(31,197,110,0.28);
  --text: #F4F7F2;
  --muted: rgba(244,247,242,0.62);
  --muted2: rgba(244,247,242,0.40);
  --sans: 'Sora', system-ui, sans-serif;
  --grotesk: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1180px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 116px 0; position: relative; }
.section-sm { padding: 72px 0; }

/* ---------- typography helpers ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; letter-spacing: -0.02em; }
p { margin: 0; }
.hl { background: linear-gradient(118deg, var(--green-a), var(--green-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { margin: 16px 0 0; }
.section-head .lead { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  border: none; cursor: pointer; border-radius: 11px; padding: 13px 20px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, border-color .2s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--green-a), var(--green-b)); color: #04150B; box-shadow: 0 10px 34px -10px rgba(31,197,110,0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(31,197,110,0.8); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.02); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 13px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- glow + grid decorations ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(100px); z-index: 0; pointer-events: none; }
.hexbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9,13,11,0.78); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line); padding: 13px 28px;
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .wm { font-family: var(--grotesk); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }
.brand .wm span { color: var(--green-b); }
.navlinks { display: flex; align-items: center; gap: 32px; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.navlinks a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 9px; cursor: pointer; }
.menu-btn svg { display: block; }

/* ============================================================
   HERO (Direction B — centered minimal)
   ============================================================ */
.hero {
  position: relative; min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 150px 28px 90px; overflow: hidden;
}
.hero .glow1 { width: 680px; height: 420px; background: rgba(31,197,110,0.17); left: 50%; transform: translateX(-50%); top: 40px; }
.hero .hexbg { opacity: 0.55; mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 30%, transparent 75%); }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 880px; }
.hexmark { margin-bottom: 30px; filter: drop-shadow(0 0 28px rgba(31,197,110,0.45)); }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); letter-spacing: -0.035em; }
.hero .lead { max-width: 600px; margin: 26px auto 36px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.trust { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-top: 56px; }
.trust .t { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.trust .t .n { font-family: var(--grotesk); font-weight: 700; font-size: 24px; color: var(--text); }
.trust .t .n .hl { font-weight: 700; }
.trust .t .l { font-size: 13px; color: var(--muted2); letter-spacing: 0.01em; }
.trust .divider { width: 1px; align-self: stretch; background: var(--line); }

.scrollcue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--muted2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scrollcue .line { width: 1px; height: 30px; background: linear-gradient(var(--green), transparent); }

/* ---------- partners / tech strip ---------- */
.strip { border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: var(--bg2); }
.strip-inner { display: flex; align-items: center; gap: 30px; padding: 26px 0; flex-wrap: wrap; justify-content: center; }
.strip .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted2); }
.strip .chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.chip svg { color: var(--green); }

/* ============================================================
   AI DEEP-DIVE
   ============================================================ */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 8px; }
.ai-copy .feature-list { list-style: none; padding: 0; margin: 30px 0 34px; display: flex; flex-direction: column; gap: 14px; }
.ai-copy .feature-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; }
.ai-copy .feature-list .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--green-soft); border: 1px solid var(--green-ring); display: grid; place-items: center; color: var(--green); margin-top: 1px; }
.ai-copy .feature-list b { font-weight: 600; }
.ai-copy .feature-list span { color: var(--muted); }

/* workflow card */
.wf { background: linear-gradient(165deg, var(--surface2), var(--surface)); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); position: relative; }
.wf::before { content: ''; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; background: linear-gradient(160deg, rgba(31,197,110,0.4), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.wf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.wf-title { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.wf-dots { display: flex; gap: 6px; }
.wf-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.wf-row { display: flex; align-items: center; gap: 13px; padding: 14px 15px; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--line2); position: relative; }
.wf-row .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); border: 1px solid var(--green-ring); flex-shrink: 0; color: var(--green); }
.wf-row .tx b { display: block; font-weight: 600; font-size: 14.5px; }
.wf-row .tx span { color: var(--muted2); font-size: 12.5px; }
.wf-row .badge { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--green); background: var(--green-soft); padding: 4px 9px; border-radius: 6px; letter-spacing: 0.04em; }
.wf-connector { width: 2px; height: 16px; background: linear-gradient(var(--green-ring), var(--line)); margin: 0 0 0 32px; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.card {
  background: linear-gradient(170deg, var(--surface), var(--bg2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--green-ring); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.card .ic-hex { position: relative; width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; color: var(--green); }
.card .ic-hex svg.frame { position: absolute; inset: 0; }
.card .ic-hex svg.glyph { position: relative; z-index: 1; width: 24px; height: 24px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card.featured { grid-column: span 2; background: linear-gradient(150deg, rgba(31,197,110,0.10), var(--surface) 55%); border-color: var(--green-ring); }
.card.featured .badge-feat { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); border: 1px solid var(--green-ring); border-radius: 999px; padding: 5px 11px; }
.card.featured h3 { font-size: 25px; }
.card.featured p { font-size: 15.5px; max-width: 440px; }
.card .learn { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 13.5px; font-weight: 600; text-decoration: none; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.card:hover .learn { opacity: 1; transform: translateY(0); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--bg2); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 54px; position: relative; }
.steps::before { content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 1px; background: repeating-linear-gradient(90deg, var(--green-ring) 0 6px, transparent 6px 14px); z-index: 0; }
.step { position: relative; z-index: 1; }
.step .num { width: 54px; height: 54px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--green-ring); display: grid; place-items: center; font-family: var(--grotesk); font-weight: 700; font-size: 20px; color: var(--green); margin-bottom: 20px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.why-statement h2 { margin-top: 16px; }
.why-statement .lead { margin-top: 20px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: border-color .2s; }
.why-item:hover { border-color: var(--green-ring); }
.why-item .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); border: 1px solid var(--green-ring); display: grid; place-items: center; color: var(--green); margin-bottom: 14px; }
.why-item h3 { font-size: 16px; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.about-copy h2 { margin-top: 16px; }
.about-copy p { color: var(--muted); margin-top: 20px; font-size: 16px; }
.about-panel { background: linear-gradient(160deg, var(--surface2), var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: 12px; position: relative; overflow: hidden; }
.about-panel .stat { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: 14px; }
.about-panel .stat + .stat { border-top: 1px solid var(--line2); }
.about-panel .stat .n { font-family: var(--grotesk); font-weight: 700; font-size: 34px; line-height: 1; }
.about-panel .stat .l { color: var(--muted); font-size: 14px; }
.about-panel .pglow { width: 260px; height: 260px; background: rgba(31,197,110,0.16); bottom: -120px; right: -80px; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.contact { position: relative; overflow: hidden; }
.contact .glow1 { width: 700px; height: 420px; background: rgba(31,197,110,0.14); left: 50%; transform: translateX(-50%); top: -120px; }
.contact-card { position: relative; z-index: 2; background: linear-gradient(165deg, var(--surface2), var(--surface)); border: 1px solid var(--line); border-radius: 24px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-info { padding: 38px; display: flex; flex-direction: column; }
.contact-info h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 14px; }
.contact-info .lead { margin-top: 16px; }
.contact-details { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-details .row { display: flex; align-items: center; gap: 13px; }
.contact-details .row .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); border: 1px solid var(--green-ring); display: grid; place-items: center; color: var(--green); flex-shrink: 0; }
.contact-details .row .meta b { display: block; font-size: 14.5px; font-weight: 600; }
.contact-details .row .meta span { color: var(--muted); font-size: 13.5px; }

.form { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field label .opt { color: var(--muted2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: var(--sans); font-size: 14.5px; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--muted2); margin-top: 14px; text-align: center; }
.form-success { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; min-height: 360px; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); border: 1px solid var(--green-ring); display: grid; place-items: center; color: var(--green); }
.form.sent .form-body { display: none; }
.form.sent .form-success { display: flex; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg2); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.faq-list { max-width: 820px; margin: 52px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s; }
.faq-item[open] { border-color: var(--green-ring); background: linear-gradient(160deg, rgba(31,197,110,0.06), var(--surface) 60%); }
.faq-item:hover { border-color: rgba(255,255,255,0.18); }
.faq-q { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 22px 24px; font-family: var(--grotesk); font-weight: 600; font-size: 17px; color: var(--text); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .qmark { margin-left: auto; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft); border: 1px solid var(--green-ring); display: grid; place-items: center; color: var(--green); transition: transform .25s ease; }
.faq-item[open] .faq-q .qmark { transform: rotate(45deg); }
.faq-a { padding: 0 24px 24px 24px; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 660px; }
@media (max-width: 640px) { .faq-q { font-size: 15.5px; padding: 18px 18px; } .faq-a { padding: 0 18px 20px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line2); background: var(--bg2); padding: 64px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer .ftagline { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer .sub-form { display: flex; gap: 8px; margin-top: 6px; }
.footer .sub-form input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--text); font-family: var(--sans); font-size: 13.5px; }
.footer .sub-form input:focus { outline: none; border-color: var(--green); }
.footer .sub-form button { background: var(--green-soft); border: 1px solid var(--green-ring); color: var(--green); border-radius: 9px; padding: 0 14px; cursor: pointer; font-weight: 600; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line2); color: var(--muted2); font-size: 13px; flex-wrap: wrap; gap: 14px; }
.footer-bottom .social { display: flex; gap: 12px; }
.footer-bottom .social a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s; }
.footer-bottom .social a:hover { color: var(--green); border-color: var(--green-ring); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .floaty, .pulse-ring, .hexmark { animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  @keyframes glowpulse { 0%,100% { filter: drop-shadow(0 0 22px rgba(31,197,110,0.4)); } 50% { filter: drop-shadow(0 0 36px rgba(31,197,110,0.65)); } }
  .floaty { animation: floaty 6s ease-in-out infinite; }
  .hexmark { animation: glowpulse 5s ease-in-out infinite; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .ai-grid, .why-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .card.featured { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .steps::before { display: none; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .navlinks { display: none; }
  .navlinks.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(9,13,11,0.96); backdrop-filter: blur(14px); padding: 20px 28px; gap: 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
  .navlinks.open .btn { width: 100%; justify-content: center; }
  .menu-btn { display: block; }
  .nav .nav-cta .btn-desktop { display: none; }
  .section { padding: 80px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .card.featured { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .trust { gap: 26px; }
  .trust .divider { display: none; }
}
