/* GK dev — dark premium theme */
:root {
  --bg: #0B0F1A;
  --bg-alt: #0E1424;
  --panel: #131A2C;
  --panel-hover: #182136;
  --line: #223052;
  --text: #E7ECF6;
  --muted: #96A2BC;
  --accent: #F43F5E;
  --accent-soft: rgba(244, 63, 94, 0.12);
  --accent-2: #7C9BF5;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: balance;
}
h3 { font-size: 18px; font-weight: 650; margin: 0 0 8px; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.section-lead { color: var(--muted); max-width: 46em; margin: 0 0 38px; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600; font-size: 15.5px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(244, 63, 94, 0.42); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 48, 82, 0.6);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.logo-mark {
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 8px; padding: 4px 8px; line-height: 1;
}
.logo-text { font-family: var(--mono); font-size: 17px; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px;
  margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s 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; overflow: hidden;
  padding: clamp(80px, 14vh, 150px) 0 clamp(60px, 9vh, 110px);
}
.hero-glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 63, 94, 0.16), rgba(124, 155, 245, 0.07) 55%, transparent);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(124, 155, 245, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124, 155, 245, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 35%, transparent 75%);
}
.hero .container { position: relative; }
.hero-lead { color: var(--muted); font-size: clamp(16.5px, 1.9vw, 19px); max-width: 42em; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vh, 76px); }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--mono); font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  color: var(--text); margin-bottom: 4px; font-variant-numeric: tabular-nums;
}
.hero-stats dd { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vh, 110px) 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Cards ---------- */
.cards-grid { display: grid; gap: 18px; margin-top: 38px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(244, 63, 94, 0.45); background: var(--panel-hover); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Process ---------- */
.process {
  list-style: none; margin: 38px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  counter-reset: step;
}
.process li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.process li:hover { transform: translateY(-4px); border-color: rgba(124, 155, 245, 0.5); }
.step-num {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--accent-2); letter-spacing: 0.1em;
  display: block; margin-bottom: 12px;
}
.process p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.work {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.work:hover { transform: translateY(-5px); border-color: rgba(244, 63, 94, 0.5); box-shadow: var(--shadow); }
.work-img { aspect-ratio: 16 / 9; overflow: hidden; background: #0a0e18; }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.work:hover .work-img img { transform: scale(1.04); }
.work-body { padding: 22px 24px 24px; }
.work-body h3 { display: flex; align-items: center; gap: 8px; }
.work-arrow { color: var(--accent); font-size: 15px; transition: transform 0.25s ease; }
.work:hover .work-arrow { transform: translate(3px, -3px); }
.work-body p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  color: var(--accent-2); background: rgba(124, 155, 245, 0.1);
  border: 1px solid rgba(124, 155, 245, 0.22);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Team ---------- */
.founders { display: grid; gap: 26px; margin-top: 12px; }
.founder {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.founder:hover { border-color: rgba(244, 63, 94, 0.4); }
.founder-photo { position: relative; min-height: 320px; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; position: absolute; inset: 0; }
.founder-monogram {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(244, 63, 94, 0.22), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(124, 155, 245, 0.2), transparent 55%),
    #10182B;
}
.founder-monogram span {
  font-family: var(--mono); font-size: 64px; font-weight: 700;
  color: var(--text); opacity: 0.9; letter-spacing: 0.04em;
}
.founder-info { padding: 30px 34px; }
.founder-info h3 { font-size: 21px; }
.founder-role {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.founder-info > p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.founder-info .tags { margin-top: 16px; }

/* ---------- Contacts ---------- */
.contacts-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.contact-label {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.contact-value { font-size: 17px; font-weight: 600; color: var(--text); }
.contact-card:hover .contact-value { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .work, .process li, .btn, .work-img img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cols-3, .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11, 15, 26, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 16px; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contacts-inner { grid-template-columns: 1fr; gap: 24px; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { min-height: 340px; }
  .founder-photo img { position: static; height: 340px; }
}
@media (max-width: 560px) {
  .cols-3, .process { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
