/* Pilebase marketing — shared across all pages */
:root {
  --slate-950: #0b1120; --slate-900: #0f172a; --slate-800: #1e293b; --slate-600: #475569;
  --amber-500: #f59e0b; --amber-600: #d97706; --amber-700: #b45309; --amber-100: #fbe9c9;
  --bg: #fafafa; --panel: #fff; --border: #e5e7eb; --text: #111827; --muted: #5b6472;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--amber-700); }
::selection { background: var(--amber-100); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.2,0.6,0.2,1), transform 0.7s cubic-bezier(0.2,0.6,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 17, 32, 0.72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #fff; text-decoration: none; }
.nav nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav nav a { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.nav nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav nav a.cta { background: var(--amber-600); color: #fff; }
.nav nav a.cta:hover { background: var(--amber-500); }

/* hero (home) */
.hero { background: radial-gradient(1100px 520px at 50% -10%, rgba(217,119,6,0.28), transparent 60%), linear-gradient(180deg, var(--slate-950) 0%, var(--slate-900) 78%, #16213a 100%); color: #fff; padding: 84px 24px 96px; overflow: hidden; }
.hero-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .buttons { justify-content: center; } }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(92deg, #f59e0b 10%, #fbbf24 50%, #f59e0b 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: #aab4c5; font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin-bottom: 32px; font-weight: 500; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35)); }
.buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 15px 32px; font-size: 16.5px; transition: transform 0.15s ease, background 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn-amber { background: var(--amber-600); color: #fff; }
.btn-amber:hover { background: var(--amber-500); }
.btn-ghost { background: rgba(255,255,255,0.07); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.hero .tiny { margin-top: 20px; font-size: 13.5px; color: #7a8598; }

/* compact dark header for subpages */
.page-hero { background: linear-gradient(180deg, var(--slate-950), var(--slate-900)); color: #fff; text-align: center; padding: 72px 24px 64px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #aab4c5; font-size: 17px; max-width: 600px; margin: 0 auto; }

/* statement */
.statement { text-align: center; padding: 110px 24px; max-width: 880px; margin: 0 auto; }
.statement h2 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--slate-900); }
.statement h2 em { font-style: normal; color: var(--amber-600); }
.statement p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 20px auto 0; }

/* alternating feature rows */
.rows { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; display: flex; flex-direction: column; gap: 96px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.frow.flip .fcopy { order: 2; } .frow.flip .fmock { order: 1; }
.fcopy .kicker, .kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; font-weight: 800; color: var(--amber-700); margin-bottom: 10px; }
.fcopy h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.015em; line-height: 1.15; color: var(--slate-900); margin-bottom: 14px; font-weight: 800; }
.fcopy p { color: var(--muted); font-size: 16.5px; margin-bottom: 10px; }
.fcopy ul { margin: 14px 0 0 18px; color: var(--muted); font-size: 15px; display: grid; gap: 7px; }
@media (max-width: 780px) { .frow, .frow.flip { grid-template-columns: 1fr; gap: 26px; } .frow.flip .fcopy { order: 1; } .frow.flip .fmock { order: 2; } }

/* CSS-drawn app windows + phone */
.window { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,0.14); transition: transform 0.4s cubic-bezier(0.2,0.6,0.2,1), box-shadow 0.4s ease; }
.window:hover { transform: translateY(-6px); box-shadow: 0 34px 80px rgba(15,23,42,0.2); }
.window .chrome { background: #eef1f5; padding: 9px 13px; display: flex; gap: 6px; }
.window .chrome i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #d3dae3; }
.window .bar { background: var(--slate-900); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; }
.window .bar .pill { background: var(--amber-600); font-size: 10px; padding: 2px 9px; border-radius: 99px; }
.window .body { padding: 16px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stat { border: 1px solid var(--border); border-radius: 10px; padding: 11px; }
.stat b { display: block; font-size: 21px; color: var(--slate-900); letter-spacing: -0.02em; }
.stat span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.qcard { border: 1px solid var(--border); border-left: 4px solid var(--amber-600); border-radius: 10px; padding: 13px; margin-top: 12px; }
.qcard .badge { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; background: var(--amber-600); color: #fff; border-radius: 99px; padding: 3px 9px; }
.qcard .badge.navy { background: var(--slate-800); }
.qcard .badge.green { background: #15803d; }
.qcard p { font-size: 13.5px; margin-top: 7px; color: var(--text); }
.qcard small { color: var(--muted); }
.mockbtn { display: inline-block; background: var(--amber-600); color: #fff; font-size: 12px; font-weight: 700; border-radius: 7px; padding: 7px 13px; margin-top: 9px; }
.phone { width: min(270px, 80%); margin: 0 auto; border: 1px solid var(--border); border-radius: 34px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,0.16); background: #fff; }
.phone .notch { background: var(--slate-900); height: 26px; border-radius: 0 0 14px 14px; width: 55%; margin: 0 auto; }
.phone .pbody { padding: 14px; }
.phone .pbar { background: var(--slate-900); color: #fff; margin: -14px -14px 12px; padding: 30px 14px 10px; font-weight: 700; font-size: 13px; }

/* dark band */
.band { background: linear-gradient(180deg, var(--slate-950), var(--slate-900)); color: #fff; padding: 96px 24px; }
.band-inner { max-width: 1080px; margin: 0 auto; }
.band h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; text-align: center; margin-bottom: 12px; font-weight: 800; }
.band .sub { text-align: center; color: #aab4c5; max-width: 560px; margin: 0 auto 52px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.cell { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); border-radius: 14px; padding: 22px; }
.cell h3 { font-size: 16.5px; margin-bottom: 7px; }
.cell p { color: #a6b0c0; font-size: 14px; }

/* light sections + steps/cards */
.steps-wrap { max-width: 1080px; margin: 0 auto; padding: 100px 24px; }
.steps-wrap h2 { text-align: center; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; color: var(--slate-900); font-weight: 800; }
.steps-wrap .sub { text-align: center; color: var(--muted); max-width: 560px; margin: 12px auto 54px; font-size: 17px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px 24px; position: relative; }
.step.numbered::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 22px; background: var(--amber-600); color: #fff; font-weight: 800; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(217,119,6,0.35); }
.step h3 { margin: 6px 0 8px; font-size: 17.5px; color: var(--slate-900); }
.step p { color: var(--muted); font-size: 14.5px; }

/* modules page */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; padding: 70px 24px 100px; }
.module { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.module:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,0.1); }
.module .mi { width: 44px; height: 44px; border-radius: 12px; background: var(--amber-100); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 20px; }
.module h3 { font-size: 18px; color: var(--slate-900); margin-bottom: 8px; }
.module p { color: var(--muted); font-size: 14.5px; }
.module ul { margin: 12px 0 0 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 5px; }

/* contact */
.contact { background: radial-gradient(900px 400px at 50% 0%, rgba(217,119,6,0.22), transparent 60%), var(--slate-950); color: #fff; padding: 100px 24px 110px; }
.contact-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 12px; }
.contact .sub { color: #aab4c5; font-size: 17px; margin-bottom: 40px; }
form { text-align: left; display: grid; gap: 14px; }
.frm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .frm-row { grid-template-columns: 1fr; } }
form label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #93a0b4; display: block; margin-bottom: 6px; }
form input, form textarea { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 10px; color: #fff; padding: 13px 14px; font-size: 15px; font-family: inherit; }
form input:focus, form textarea:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,158,11,0.22); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.submit { background: var(--amber-600); color: #fff; border: none; border-radius: 999px; padding: 15px 32px; font-size: 16.5px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 6px; }
.submit:hover { background: var(--amber-500); }
.submit:disabled { opacity: 0.6; cursor: wait; }
.form-note { font-size: 13px; color: #7a8598; margin-top: 14px; text-align: center; }
.form-note a { color: #cbd5e1; }
.form-result { border-radius: 10px; padding: 13px; font-size: 14.5px; font-weight: 600; display: none; }
.form-result.ok { display: block; background: rgba(21,128,61,0.25); border: 1px solid rgba(74,222,128,0.4); color: #bbf7d0; }
.form-result.err { display: block; background: rgba(198,40,40,0.22); border: 1px solid rgba(248,113,113,0.4); color: #fecaca; }

footer { background: var(--slate-950); text-align: center; color: #6b7688; font-size: 13.5px; padding: 26px 24px 42px; border-top: 1px solid rgba(255,255,255,0.06); }
footer a { color: #93a0b4; }
