/* ============================================================
   GP Web Dev — styles
   ============================================================ */
:root {
  --ink: #0b1221;
  --ink-2: #0f1729;
  --surface: #131c30;
  --surface-2: #182236;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf9;
  --muted: #9aa7c4;
  --muted-2: #74829f;

  --teal: #2dd4bf;
  --indigo: #6366f1;
  --grad: linear-gradient(135deg, #6366f1 0%, #2dd4bf 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(45, 212, 191, 0.18));

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal); color: #04221f; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #04141a; box-shadow: 0 12px 30px -12px rgba(45, 212, 191, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(99, 102, 241, .8); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0b1221; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-block { width: 100%; }

.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 33, 0.55);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: rgba(11, 18, 33, 0.9); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { height: 30px; width: auto; color: var(--teal); }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-name span { color: var(--teal); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .96rem; transition: color .2s ease, background .2s ease; }
.nav > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-cta { margin-left: 8px; color: #04141a !important; background: var(--grad); }
.nav-cta:hover { background: var(--grad); color: #04141a !important; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(70px, 11vw, 140px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 700px; pointer-events: none;
  background: radial-gradient(60% 60% at 75% 10%, rgba(99, 102, 241, .35), transparent 60%),
              radial-gradient(50% 50% at 15% 30%, rgba(45, 212, 191, .22), transparent 60%);
  filter: blur(10px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 600;
  color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }

.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 44ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 38px; }

.hero-stats { list-style: none; display: flex; gap: 38px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .85rem; color: var(--muted-2); }

/* hero visual */
.hero-visual { position: relative; }
.code-window {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.code-bar span { width: 12px; height: 12px; border-radius: 50%; background: #2a3550; }
.code-bar span:nth-child(1) { background: #ff5f57; }
.code-bar span:nth-child(2) { background: #febc2e; }
.code-bar span:nth-child(3) { background: #28c840; }
.code-bar em { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--muted-2); }
.code-body { margin: 0; padding: 22px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: .9rem; line-height: 1.7; color: #c6d2ee; overflow-x: auto; }
.c-key { color: #c792ea; } .c-fn { color: #82aaff; } .c-fn2 { color: #ffcb6b; }
.c-tag { color: #2dd4bf; } .c-attr { color: #f78c6c; } .c-str { color: #c3e88d; }

.float-card {
  position: absolute; background: rgba(19, 28, 48, .92); border: 1px solid var(--border-strong);
  padding: 11px 16px; border-radius: 12px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.float-1 { top: -18px; right: -10px; animation: float 5s ease-in-out infinite; }
.float-2 { bottom: -20px; left: -14px; animation: float 5s ease-in-out infinite .8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- section head ---------- */
.section-head { max-width: 660px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--teal); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stat-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.stat-panel-head { margin-bottom: 26px; }
.stat-panel-head h3 { margin: 0; }
.bars { display: flex; flex-direction: column; gap: 20px; }
.bar-top { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; margin-bottom: 9px; color: var(--muted); }
.track { height: 9px; background: rgba(255, 255, 255, .07); border-radius: 999px; overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 1.4s cubic-bezier(.16, 1, .3, 1); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 13px; }
.checklist li { position: relative; padding-left: 34px; color: var(--muted); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-soft); color: var(--teal); display: grid; place-items: center; font-size: .75rem; font-weight: 800;
  border: 1px solid var(--border);
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--ink-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.step-no { font-size: 1.05rem; font-weight: 800; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- why ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value {
  background: linear-gradient(180deg, var(--surface), var(--ink-2)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px; border-left: 3px solid transparent;
  transition: border-color .25s ease, transform .25s ease;
}
.value:hover { transform: translateY(-4px); border-left-color: var(--teal); }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; }

/* ---------- cta band ---------- */
.cta-band { padding: clamp(48px, 7vw, 80px) 0; }
.cta-inner {
  background: var(--grad); border-radius: 24px; padding: clamp(36px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-inner h2 { color: #04141a; margin-bottom: 6px; }
.cta-inner p { color: rgba(4, 20, 26, .8); margin: 0; max-width: 50ch; font-weight: 500; }

/* ---------- contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 15px; align-items: center; }
.ci-icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--teal); font-size: 1.1rem;
}
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.contact-list a:hover { color: var(--teal); }

.contact-form {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--ink); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: .96rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45, 212, 191, .15);
}
.field textarea { resize: vertical; }
.form-note { margin: 14px 0 0; font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: var(--teal); }
.form-note.err { color: #ff8a8a; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--ink-2); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { max-width: 38ch; }
.footer-brand p { color: var(--muted); margin-top: 16px; font-size: .95rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 11px; }
.footer-nav h4, .footer-contact h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin: 0 0 6px; }
.footer-nav a, .footer-contact a { color: var(--muted); font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--teal); }
.footer-contact span { color: var(--muted); font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted-2); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11, 18, 33, .98); border-bottom: 1px solid var(--border); padding: 16px 24px 24px;
    transform: translateY(-130%); transition: transform .35s ease; backdrop-filter: blur(12px);
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 13px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .card-grid, .steps, .value-grid, .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
