:root {
  --bg: #eef5ff;
  --bg-deep: #dceaff;
  --ink: #13213a;
  --muted: #8c9ab3;
  --secondary: #4a5b78;
  --primary: #3d8bff;
  --primary-dark: #1f6feb;
  --cyan: #4cc3ff;
  --mint: #39c6b4;
  --card: #ffffff;
  --line: #e6edf8;
  --shadow: 0 28px 64px rgba(19, 33, 58, 0.14);
  --radius: 28px;
  --font-display: "Syne", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "Manrope", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  background:
    radial-gradient(1200px 640px at 12% -10%, rgba(76, 195, 255, 0.28), transparent 60%),
    radial-gradient(900px 520px at 88% 8%, rgba(61, 139, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 42%, #e8f1ff 100%);
  background-attachment: fixed;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 245, 255, 0.78);
  backdrop-filter: saturate(1.2) blur(18px);
  border-bottom: 1px solid transparent;
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  color: var(--secondary);
}

.nav a:hover { color: var(--ink); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  margin-left: auto;
}

.lang-switch a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--secondary);
}

.lang-switch a.is-active {
  background: var(--ink);
  color: #fff;
}

.mail-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.mail-pill:hover { background: #0b1528; }

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  padding: 36px 0 48px;
  overflow: clip;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-bottom: 24px;
  animation: rise-in 0.9s ease both;
}

.brand-hero {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-hero img {
  width: clamp(52px, 7vw, 72px);
  height: clamp(52px, 7vw, 72px);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(31, 111, 235, 0.28);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.bars i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--primary));
  display: block;
  animation: eq 1.2s ease-in-out infinite;
}

.bars i:nth-child(1) { height: 8px; animation-delay: 0s; }
.bars i:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.bars i:nth-child(3) { height: 10px; animation-delay: 0.3s; }

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 750;
}

.lead {
  margin: 18px 0 0;
  max-width: 420px;
  color: var(--secondary);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(61, 139, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.dark {
  background: var(--ink);
  box-shadow: none;
}

.btn.dark:hover { background: #0b1528; }

.hero-mail {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 38%;
  background:
    linear-gradient(115deg, transparent 8%, rgba(238, 245, 255, 0.35) 28%, transparent 52%),
    radial-gradient(circle at 70% 40%, rgba(61, 139, 255, 0.18), transparent 55%);
}

.hero-shot {
  position: absolute;
  right: -4%;
  top: 6%;
  width: min(58vw, 640px);
  height: min(84vh, 720px);
  border-radius: 40px 0 0 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: drift 8s ease-in-out infinite alternate, fade-in 1.1s ease both;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.section {
  padding: 88px 0 12px;
}

.sec-head {
  margin-bottom: 28px;
  max-width: 560px;
  animation: rise-in 0.8s ease both;
}

.sec-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.sec-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 237, 248, 0.9);
  backdrop-filter: blur(8px);
}

.feature-copy {
  padding: 28px 28px 12px;
}

.feature-copy h3,
.stack-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.feature-copy p,
.stack-item p {
  margin: 10px 0 0;
  color: var(--secondary);
  font-size: 15px;
}

.feature-frame {
  margin: 8px 28px 0;
  height: 340px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #101828;
  padding: 8px 8px 0;
}

.feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px 18px 0 0;
}

.stack {
  display: grid;
  gap: 18px;
}

.stack-item {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 237, 248, 0.9);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.flow span {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-deep);
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}

.flow span.on {
  background: var(--ink);
  color: #fff;
}

.scenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scene {
  min-height: 180px;
  padding: 26px 24px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.scene h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.scene .words {
  margin: 14px 0 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}

.scene .meta {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.tag {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft, #dceaff);
  background: #dceaff;
  color: var(--primary-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.contact {
  margin: 88px 0 28px;
  padding: 48px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(680px 280px at 90% 0%, rgba(76, 195, 255, 0.35), transparent 60%),
    linear-gradient(135deg, #13213a 0%, #1f6feb 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.contact .kicker { color: #dceaff; }

.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.contact .who {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.contact-mail { text-align: right; }

.contact-mail a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.03em;
  border-bottom: 3px solid var(--cyan);
  padding-bottom: 4px;
}

.contact-mail p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 40px;
  color: var(--muted);
  font-size: 13px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot a {
  color: var(--secondary);
  font-weight: 650;
  text-decoration: none;
}

.foot a:hover { color: var(--ink); }

.doc {
  padding: 18px 0 72px;
}

.doc-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 48px 48px 56px;
  backdrop-filter: blur(8px);
}

.doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.doc-toolbar .lang-switch { margin-left: 0; }

.doc-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.doc-card h2 {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.doc-card p,
.doc-card li {
  color: #24324a;
  font-size: 16px;
}

.doc-card .meta {
  color: var(--muted);
  margin: 10px 0 24px;
}

.doc-card ul { padding-left: 1.2em; }

.doc-card a { color: var(--primary-dark); font-weight: 650; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-10px, 14px, 0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .nav { display: none; }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-copy {
    max-width: none;
    padding-bottom: 0;
  }

  .hero-visual {
    position: relative;
    height: 420px;
    margin-top: 28px;
  }

  .hero-visual::before { display: none; }

  .hero-shot {
    inset: 0;
    width: 100%;
    height: 100%;
    right: auto;
    top: auto;
    border-radius: 28px;
  }

  .product-grid,
  .scenes,
  .contact {
    grid-template-columns: 1fr;
  }

  .feature-frame { height: 280px; margin: 8px 18px 0; }

  .contact {
    padding: 32px 24px;
  }

  .contact-mail { text-align: left; }

  .doc-card { padding: 28px 22px 36px; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .mail-pill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
