
:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-soft: #0d0f13;
  --panel: #11141a;
  --panel-2: #151922;
  --text: #f4f5f7;
  --muted: #9aa3b2;
  --line: rgba(255,255,255,.09);
  --accent: #5f8cff;
  --accent-2: #85a8ff;
  --ok: #66d8a0;
  --warn: #f0c76c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --max: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-soft: #eef1f6;
  --panel: #ffffff;
  --panel-2: #f4f6f9;
  --text: #111318;
  --muted: #5f6877;
  --line: rgba(17,19,24,.10);
  --accent: #315ed7;
  --accent-2: #244dbb;
  --ok: #0d8d58;
  --warn: #9a6a00;
  --shadow: 0 24px 70px rgba(46,54,76,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(95,140,255,.14), transparent 60%),
    radial-gradient(760px 500px at -10% 30%, rgba(95,140,255,.07), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(95,140,255,.32); }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); border-radius: 11px; font-weight: 800; color: var(--accent-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--muted); padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--panel); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.menu-btn { display: none; }

.hero { padding: 104px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 72px; align-items: end; }
.hero h1 { margin: 18px 0 22px; max-width: 820px; font-size: clamp(54px, 8vw, 108px); line-height: .9; letter-spacing: -.065em; font-weight: 770; }
.hero h1 span { color: var(--accent-2); }
.hero-copy { max-width: 650px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 13px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-secondary { background: var(--panel); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-disabled { cursor: not-allowed; opacity: .52; pointer-events: none; }

.hero-side { border-top: 1px solid var(--line); padding-top: 18px; }
.hero-side-row { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.hero-side-row span:first-child { color: var(--muted); }
.hero-side-row strong { font-size: 14px; text-align: right; }

.section { padding: 82px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-head h2 { margin: 10px 0 0; font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -.045em; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.7; }

.projects { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.project-card { position: relative; overflow: hidden; min-height: 460px; background: linear-gradient(145deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.project-card.large { grid-column: span 12; min-height: 540px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.project-card.half { grid-column: span 6; }
.project-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 750; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.dev { color: var(--warn); }
.pill.live { color: var(--ok); }
.project-copy { align-self: center; }
.project-index { color: var(--muted); font-size: 12px; letter-spacing: .14em; font-weight: 800; }
.project-card h3 { margin: 16px 0 12px; font-size: clamp(34px, 5vw, 72px); letter-spacing: -.055em; line-height: .95; }
.project-card.half h3 { font-size: 42px; }
.project-card p { color: var(--muted); line-height: 1.7; max-width: 520px; }
.project-link { display: inline-flex; margin-top: 18px; gap: 8px; align-items: center; font-weight: 750; }
.project-link span { transition: transform .2s ease; }
.project-link:hover span { transform: translateX(4px); }

.mock-area { min-height: 100%; display: grid; place-items: center; }
.mock-window { width: min(100%, 610px); border-radius: 22px; border: 1px solid rgba(255,255,255,.11); background: #0b0d12; box-shadow: 0 42px 90px rgba(0,0,0,.38); overflow: hidden; transform: rotate(-1.8deg); }
.mock-top { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #a8afbb; font-size: 12px; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: #303541; }
.mock-body { min-height: 300px; display: grid; place-items: center; text-align: center; padding: 32px; background: radial-gradient(240px 150px at 50% 38%, rgba(95,140,255,.16), transparent 70%); }
.shift-bolt { font-size: 34px; }
.shift-title { font-size: 36px; letter-spacing: -.04em; margin: 8px 0; font-weight: 800; }
.shift-status { color: #8c95a4; font-size: 13px; margin-bottom: 20px; }
.shift-btn { display: inline-grid; place-items: center; height: 46px; min-width: 170px; border-radius: 13px; background: #f4f5f7; color: #0b0d12; font-weight: 800; font-size: 13px; }

.phone-wrap { display: flex; gap: 14px; align-items: flex-end; justify-content: center; padding-top: 24px; }
.phone { width: 176px; min-height: 350px; border: 8px solid #0b0d11; border-radius: 32px; background: #eef5ff; box-shadow: 0 28px 55px rgba(0,0,0,.25); overflow: hidden; color: #162033; }
.phone:nth-child(2) { transform: translateY(24px) rotate(4deg); }
.phone-head { padding: 18px 14px 10px; font-size: 13px; font-weight: 800; }
.phone-card { margin: 8px 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(24,48,86,.08); }
.phone-card strong { display: block; font-size: 12px; margin-bottom: 5px; }
.phone-card small { color: #64728a; line-height: 1.4; }

.bot-panel { margin: 32px auto 0; width: min(100%, 470px); padding: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); border-radius: 18px; }
.bot-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bot-line:last-child { border-bottom: 0; }
.avatar { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg,#5f8cff,#866cff); display: grid; place-items: center; font-size: 12px; font-weight: 900; color: white; }
.bot-line small { display: block; color: var(--muted); margin-top: 3px; }

.update-list { border-top: 1px solid var(--line); }
.update-row { display: grid; grid-template-columns: 150px 170px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.update-row time, .update-row .tag { color: var(--muted); font-size: 13px; }
.update-row strong { font-size: 16px; }
.update-row a { color: var(--muted); }
.update-row:hover a { color: var(--text); }

.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.principle { min-height: 230px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 24px; }
.principle .num { color: var(--accent-2); font-size: 13px; font-weight: 850; }
.principle h3 { margin: 42px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.principle p { margin: 0; color: var(--muted); line-height: 1.65; }

.support-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 42px; background: var(--panel); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.support-card::after { content: "♡"; position: absolute; right: 30px; top: -50px; font-size: 200px; opacity: .035; font-weight: 300; }
.support-card h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.support-card p { margin: 0; color: var(--muted); max-width: 650px; line-height: 1.7; }

.page-hero { padding: 92px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 16px 0 18px; font-size: clamp(48px, 8vw, 92px); line-height: .95; letter-spacing: -.06em; }
.page-hero p { max-width: 730px; color: var(--muted); line-height: 1.7; font-size: 18px; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb a:hover { color: var(--text); }

.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 60px; align-items: start; }
.prose h2 { margin: 54px 0 14px; font-size: 32px; letter-spacing: -.035em; }
.prose h3 { margin: 34px 0 12px; font-size: 21px; }
.prose p, .prose li { color: var(--muted); line-height: 1.78; }
.prose ul { padding-left: 20px; }
.side-card { position: sticky; top: 94px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); }
.side-card h3 { margin: 0 0 18px; }
.fact { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fact:last-of-type { border-bottom: 0; }
.fact span { color: var(--muted); }
.fact strong { text-align: right; }
.side-card .btn { width: 100%; margin-top: 16px; }

.help-grid, .legal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.help-card, .legal-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-height: 190px; }
.help-card h3, .legal-card h3 { margin: 34px 0 10px; font-size: 22px; }
.help-card p, .legal-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.help-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }

.notice { border-left: 3px solid var(--accent); background: var(--panel); padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); line-height: 1.65; }
.code-chip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border: 1px solid var(--line); background: var(--panel-2); padding: 3px 7px; border-radius: 7px; color: var(--text); font-size: .9em; }

.site-footer { padding: 50px 0 30px; border-top: 1px solid var(--line); margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-note { color: var(--muted); margin: 12px 0 0; max-width: 520px; line-height: 1.65; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero-grid, .project-card.large, .detail-grid, .support-card { grid-template-columns: 1fr; }
  .hero { padding-top: 74px; }
  .project-card.half { grid-column: span 12; }
  .project-card.large { min-height: auto; }
  .mock-area { padding-top: 24px; }
  .principles { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .update-row { grid-template-columns: 120px 140px 1fr; }
  .update-row a { display: none; }
  .support-card { align-items: start; }
  .help-grid, .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 14px; right: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 13px; }
  .menu-btn { display: grid; }
  .hero h1 { font-size: clamp(52px, 17vw, 82px); }
  .hero-grid { gap: 48px; }
  .section { padding: 64px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 18px; }
  .project-card { padding: 20px; min-height: 410px; }
  .project-card h3, .project-card.half h3 { font-size: 40px; }
  .mock-window { transform: none; }
  .phone { width: 145px; min-height: 310px; }
  .update-row { grid-template-columns: 1fr; gap: 5px; }
  .support-card { padding: 28px; }
  .footer-grid, .footer-bottom { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 22px; }
  .footer-bottom span { display: block; margin-top: 6px; }
  .page-hero { padding-top: 70px; }
}

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