/* Fracto website — page/section layout styles */

/* ---- NAV ---- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-mark { height: 34px; display: block; }
.nav-wm { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 30px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--fg-muted); transition: color .18s; position: relative; }
.nav-link:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-icbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--fg-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .18s, border-color .18s; }
.nav-icbtn:hover { color: var(--fg); border-color: var(--border-strong); }
.nav-burger { display: none; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 32px 20px; }
.nav-mobile .nav-link { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 17px; }

/* at-top, floating over the always-dark hero -> light treatment */
.nav-top .nav-link { color: rgba(255,255,255,.78); }
.nav-top .nav-link:hover { color: #fff; }
.nav-top .nav-wm { color: #fff; }
.nav-top .nav-icbtn { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.18); }
.nav-top .nav-icbtn:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* scrolled state — frosted bar */
[data-theme="dark"] .nav-scrolled { background: rgba(12,17,38,.78); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
[data-theme="light"] .nav-scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--mist-200), var(--shadow-sm); }

/* ---- HERO ---- */
.hero { overflow: hidden; padding: 0; margin-top: -74px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero-glow { position: absolute; z-index: 0; width: 760px; height: 760px; right: -180px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(156,100,255,.32), rgba(255,24,147,.12) 40%, transparent 66%); filter: blur(20px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; min-height: 640px; padding: 184px 32px 96px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 8px 16px; flex-wrap: nowrap; white-space: nowrap; margin-top: 40px; }
.hero-trust { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: #C7CEDD; }
.hero-meta b { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.dot-sep { width: 5px; height: 5px; border-radius: 50%; background: #49EEF4; opacity: .6; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: 100%; max-width: 420px; filter: drop-shadow(0 0 40px rgba(73,238,244,.25)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-mark img { animation: none; } }

/* ---- SEC HEAD ---- */
.sec-head { max-width: 680px; }

/* ---- WHY US (editorial numbered list) ---- */
.why-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: start; }
.why-intro { position: sticky; top: 110px; }
.why-list { display: flex; flex-direction: column; }
.why-row { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 26px 4px 26px 16px; border-top: 1px solid rgba(255,255,255,.10); margin-left: -16px; border-radius: 12px; transition: background .2s; }
.why-row:last-child { border-bottom: 1px solid rgba(255,255,255,.10); }
.why-row:hover { background: rgba(255,255,255,.03); }
.why-num { font-family: var(--font-mono); font-weight: 700; font-size: 22px; line-height: 1.2; opacity: .9; }
.why-rowbody h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff; margin: 0 0 8px; letter-spacing: -.01em; }
.why-rowbody p { font-size: 14.5px; line-height: 1.62; color: #A9B2C9; margin: 0; }

/* ---- PLATFORM ---- */
.platform-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.check-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: #C7CEDD; }
.chk { width: 24px; height: 24px; border-radius: 7px; background: rgba(73,238,244,.14); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.platform-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-tile { background: var(--navy-800); border: 1px solid rgba(255,255,255,.10); border-radius: 18px; padding: 28px 24px; }

/* ---- WORK ---- */
.work-card { display: block; background: #fff; border: 1px solid var(--mist-200); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.work-metric { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--aura-magenta); }
.work-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 8px; }
.work-card p { font-size: 14.5px; line-height: 1.6; color: var(--slate-600); margin: 0 0 18px; }
.work-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--navy-900); transition: gap .18s, color .18s; }
.work-card:hover .work-link { gap: 11px; color: var(--aura-magenta); }

/* ---- APPROACH / process timeline ---- */
.approach { overflow: hidden; }
.approach-grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%); }
.approach-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: 72px; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
/* rail runs through the centre of the node row */
.timeline-rail { position: absolute; top: 28px; left: 7%; right: 7%; height: 2px; transform: translateY(-50%); z-index: 0; }
.timeline-line { position: absolute; inset: 0; background: rgba(255,255,255,.12); border-radius: 2px; }
.timeline-progress { position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, #9C64FF, #FF1893 52%, #49EEF4);
  box-shadow: 0 0 14px rgba(255,24,147,.4);
  animation: railGrow 1.6s cubic-bezier(.4,.6,.2,1) both; transform-origin: left center; }
@keyframes railGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .timeline-progress { animation: none; } }

.phase { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phase-node { position: relative; width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; margin-bottom: 26px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--node) 70%, #fff 0%), var(--node));
  background: var(--node);
  box-shadow: 0 0 0 6px rgba(12,17,38,1), 0 0 0 7px color-mix(in srgb, var(--node) 50%, transparent), 0 0 26px var(--glow);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.phase-node-num { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: #0C1126; letter-spacing: -.02em; }
.phase-node-ring { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--node) 60%, transparent); opacity: 0; }
.phase:hover .phase-node { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 6px rgba(12,17,38,1), 0 0 0 7px var(--node), 0 0 34px var(--glow); }
.phase:hover .phase-node-ring { animation: nodePulse 1.4s ease-out infinite; }
@keyframes nodePulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

.phase-body { padding: 0 6px; }
.phase-step { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.phase-body h4 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; margin: 0 0 12px; letter-spacing: -.01em; }
.phase-body p { font-size: 14px; line-height: 1.65; color: #97A1B8; margin: 0; text-wrap: pretty; }

@media (max-width: 900px) {
  .approach-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 48px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .timeline-rail { display: none; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .phase { flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; }
  .phase-node { margin-bottom: 0; }
  .phase-body { padding: 0; }
}

/* ---- QUOTE ---- */
.quote-sec { overflow: hidden; }
.quote-text { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.32; letter-spacing: -.015em; color: #fff; max-width: 880px; margin: 24px auto 0; text-wrap: balance; }
.quote-by { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; text-align: left; }
.quote-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--aura-gradient); flex: none; }
.quote-by b { display: block; color: #fff; font-size: 15px; }
.quote-by span { color: #8A93A8; font-size: 13px; font-family: var(--font-mono); }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--slate-600); }
.contact-card { background: #fff; border: 1px solid var(--mist-200); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.sent-state { text-align: center; padding: 18px 0; }
.sent-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--aura-gradient); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sent-state h4 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.sent-state p { color: var(--slate-600); line-height: 1.6; margin: 0 0 22px; font-size: 15px; }

/* ---- FOOTER ---- */
.footer { padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand p { color: #8A93A8; font-size: 14px; line-height: 1.65; max-width: 340px; margin: 18px 0 22px; }
.footer-social { display: flex; gap: 10px; }
.soc { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: #A9B2C9; transition: border-color .18s, color .18s; }
.soc:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6E7794; display: block; margin-bottom: 16px; }
.footer-link { display: block; color: #A9B2C9; font-size: 14px; padding: 6px 0; transition: color .18s; }
.footer-link:hover { color: #fff; }
.footer-bot { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; color: #6E7794; font-size: 13px; font-family: var(--font-mono); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 28px; font-family: var(--font-mono); font-size: 13px; color: #A9B2C9; }
.footer-meta-mail { color: var(--cyan); transition: color .18s; }
.footer-meta-mail:hover { color: #8BF4F8; }
.footer-meta-sep { color: #3A477A; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-mobile { display: flex; }
  [data-theme="dark"] .nav-mobile { background: rgba(12,17,38,.96); }
  [data-theme="light"] .nav-mobile { background: #fff; box-shadow: var(--shadow-md); }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 170px 32px 72px; }
  .hero-mark { display: none; }
  .platform-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-layout { grid-template-columns: 1fr; gap: 32px; }
  .why-intro { position: static; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .check-list, .platform-stats, .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bot { flex-direction: column; gap: 14px; align-items: flex-start; }
}
