/* ShipKase — styles */
:root {
  --bg: #0b0d14;
  --bg-2: #10131c;
  --surface: #151925;
  --surface-2: #1b2030;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f5f8;
  --muted: #a7acbb;
  --dim: #7b8194;
  --red: #ec1c24;
  --red-2: #ff3b3b;
  --red-glow: rgba(236, 28, 36, 0.45);
  --blue: #3b82f6;
  --green: #16a34a;
  --purple: #8b5cf6;
  --amber: #f59e0b;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  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 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.i { width: 18px; height: 18px; flex: none; }
.i-lg { width: 30px; height: 30px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn .i { transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }
.btn-primary { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 8px 28px -8px var(--red-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px var(--red-glow); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(11, 13, 20, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { height: 40px; width: auto; }
.brand-word { font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.brand-word em { color: var(--red); font-style: italic; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; padding: 8px 14px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; background: var(--red); border-radius: 2px; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 60px;
  background: radial-gradient(120% 80% at 70% 30%, #1b1222 0%, var(--bg) 60%); }
.hero-art { position: absolute; inset: 0 0 0 30%; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(11,13,20,.6) 22%, rgba(11,13,20,0) 50%); z-index: 1; }
.hero-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, var(--bg), transparent); z-index: 1; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hero-content { position: relative; z-index: 3; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .4em; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 700; letter-spacing: -0.025em; }
.hero h1 .accent { text-shadow: 0 0 40px rgba(236,28,36,.35); }
.lead { margin-top: 26px; max-width: 470px; font-size: clamp(17px, 1.4vw, 19px); color: #d9dbe3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); margin-top: 64px; }
.pillars li { display: flex; flex-direction: column; gap: 6px; padding: 0 24px; border-left: 1px solid var(--line-2); }
.pillars li:first-child { padding-left: 0; border-left: 0; }
.pillars svg { margin-bottom: 10px; color: var(--text); }
.pillars strong { font-family: var(--font-head); font-size: 18px; }
.pillars span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.kicker { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .35em; font-size: 12px; color: var(--text); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--red); border-radius: 2px; }
.section h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
.section-note { color: var(--muted); max-width: 320px; }
.section-note .count { display: block; margin-top: 4px; color: var(--dim); font-size: 14px; }
.wave-bg { background-image: url("../img/seigaiha.svg"); background-size: 80px 40px; }

/* ---------- projects ---------- */
.projects { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project::before { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: radial-gradient(80% 70% at 50% 100%, var(--tint, rgba(236,28,36,.18)), transparent 70%); pointer-events: none; }
.project:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.project-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; padding: 26px 26px 0; align-items: start; }
.p-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c, var(--red)); box-shadow: 0 8px 20px -6px var(--c, var(--red)); }
.p-icon svg { width: 24px; height: 24px; }
.project h3 { font-size: 22px; font-weight: 600; }
.p-product { font-size: 13px; color: var(--dim); margin-top: 3px; }
.p-ext { color: var(--muted); transition: color .2s; }
.project:hover .p-ext { color: var(--text); }
.p-summary { padding: 14px 26px 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 26px 0; margin-bottom: 26px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }
.tag.status { color: #fff; border-color: transparent; background: rgba(22,163,74,.18); color: #6ee7a0; }
.tag.status.beta { background: rgba(245,158,11,.16); color: #fcd34d; }
.tag.status.dev { background: rgba(139,92,246,.18); color: #c4b5fd; }

.device { position: relative; margin: auto 22px 0; z-index: 1; }
.device-screen { border: 6px solid #22252f; border-bottom-width: 10px; border-radius: 12px 12px 4px 4px; background: #000; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 20px 40px -18px rgba(0,0,0,.9); }
.device-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 6s ease; }
.project:hover .device-screen img { transform: translateY(-4%); }
.device-base { height: 9px; margin: 0 -14px; background: linear-gradient(180deg, #4a4e5c, #262933); border-radius: 0 0 14px 14px; position: relative; }
.device-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: #1a1c24; }
.p-open { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: auto; padding: 22px; color: var(--red-2); font-family: var(--font-head); font-weight: 600; border-top: 1px solid var(--line); margin-top: 26px; transition: background .2s, color .2s; }
.p-open:hover { background: rgba(236,28,36,.08); color: #fff; }
.p-open:hover .i { transform: translateX(3px); }
.p-open .i { transition: transform .2s; }

/* ---------- process ---------- */
.process { background-color: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 20px; }
.step { text-align: center; padding: 12px 8px; }
.step-icon { width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 20px; color: var(--red-2);
  background: linear-gradient(180deg, #232838, #171b27); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px rgba(236,28,36,.05), 0 18px 40px -16px var(--red-glow); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 280px; margin: 0 auto; font-size: 15px; }
.step-arrow { color: var(--red); margin-top: 28px; }
.step-arrow .i { width: 28px; height: 28px; }

/* ---------- about ---------- */
.about-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-copy p:not(.kicker) { margin-top: 22px; color: var(--muted); font-size: 17px; max-width: 520px; }
.about-art { border-radius: 26px; overflow: hidden; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 32%); aspect-ratio: 14 / 9; box-shadow: 0 30px 80px -30px var(--red-glow); }
.about-art img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--line); }
.values li { padding: 0 32px; border-left: 1px solid var(--line); }
.values li:first-child { padding-left: 0; border-left: 0; }
.values svg { color: var(--red-2); margin-bottom: 14px; }
.values h3 { font-size: 18px; margin-bottom: 6px; }
.values p { color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-wrap { padding-top: 20px; }
.cta { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); min-height: 300px; display: flex; align-items: center; background: #15121c; }
.cta-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.cta-copy { position: relative; padding: 56px; max-width: 680px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); }
.cta p { color: #cfd2dc; margin: 16px 0 28px; }

/* ---------- footer ---------- */
.site-footer { background-color: #090a10; border-top: 1px solid var(--line); padding-top: 72px; position: relative; overflow: hidden; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .tagline { margin-top: 12px; letter-spacing: .25em; color: var(--muted); font-size: 13px; padding-left: 52px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-left: 48px; border-left: 1px solid var(--line); }
.footer-cols h4 { font-size: 15px; margin-bottom: 16px; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.social { display: flex; gap: 14px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--text); transition: border-color .2s, background .2s; }
.social a:hover { border-color: var(--red); background: rgba(236,28,36,.1); }
.social .i-lg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px; color: var(--dim); font-size: 13px; }

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

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-art { inset: 0 0 0 10%; opacity: .75; }
}
@media (max-width: 880px) {
  .header-cta { display: none; }
  .menu-toggle { display: grid; gap: 6px; margin-left: auto; width: 44px; height: 44px; place-content: center; background: none; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; padding: 12px 16px 20px; background: rgba(11,13,20,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s ease; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a.active::after { display: none; }
  .site-header:has(.nav.open) { background: rgba(11,13,20,.97); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); margin: 0 auto; }
  .about-top { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 28px; }
  .values li { padding: 0; border: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 104px 0 0; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-content { order: 1; }
  .hero-art { order: 2; position: relative; inset: auto; height: 300px; margin-top: 8px; opacity: 1; }
  .hero-art::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(11,13,20,0) 35%); }
  .pillars { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
  .pillars li { padding: 0 10px; }
  .pillars span { font-size: 12.5px; }
  .project-grid { grid-template-columns: 1fr; }
  .brand-word { font-size: 22px; }
  .cta-copy { padding: 36px 24px 150px; }
  .cta-art { object-position: 80% bottom; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand .tagline { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .petals { display: none; }
  .project, .btn, .device-screen img { transition: none; }
}
