:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #eff4ff;
  --surface-dark: #0d1b3d;
  --surface-dark-2: #12285a;
  --text: #15213b;
  --muted: #64708b;
  --line: rgba(13, 27, 61, 0.1);
  --primary: #1368ff;
  --cyan: #16c6e7;
  --shadow: 0 16px 50px rgba(18, 40, 90, 0.08);
  --shadow-soft: 0 10px 30px rgba(18, 40, 90, 0.05);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 252, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(13, 27, 61, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

.brand-name {
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 11px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-section,
.page-hero {
  padding: 88px 0 52px;
}

.hero-grid,
.split-layout,
.legal-layout {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.split-layout,
.legal-layout {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.split-layout-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.badge,
.section-tag,
.plan-tag,
.blog-meta,
.terminal-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(19, 104, 255, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.08;
  max-width: 12ch;
}

.hero-text,
.page-hero p,
.section-head p,
.service-card p,
.product-card p,
.blog-card p,
.project-card p,
.feature-card p,
.value-card p,
.pricing-card p,
.legal-card p,
.side-card p,
.contact-form label span,
.cta-panel p,
.mini-stat span {
  color: var(--muted);
}

.hero-text,
.page-hero p,
.section-head p {
  margin-top: 18px;
  max-width: 64ch;
}

.hero-actions,
.contact-actions,
.footer-links,
.hero-mini-stats,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions,
.hero-mini-stats,
.contact-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(19, 104, 255, 0.25);
}

.btn-disabled {
  color: var(--muted);
  border-color: rgba(13, 27, 61, 0.12);
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.hero-visual {
  position: relative;
  min-height: 380px;
}

.window-card,
.feature-card,
.service-card,
.product-card,
.blog-card,
.project-card,
.value-card,
.pricing-card,
.legal-card,
.side-card,
.contact-form,
.cta-panel,
.dark-panel,
.mini-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.window-card {
  overflow: hidden;
}

.code-card {
  max-width: 520px;
}

.floating-card {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: min(320px, 78%);
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(19, 104, 255, 0.03);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(19, 104, 255, 0.25);
}

.window-body,
.terminal-card {
  padding: 18px 20px;
}

.window-body pre,
.terminal-card pre {
  margin: 0;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
}

.terminal-card {
  background: var(--surface-dark);
  color: #d8e7ff;
  border-color: rgba(255, 255, 255, 0.08);
}

.terminal-label {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #8ad8ff;
}

.mini-stat {
  padding: 18px;
  min-width: 180px;
}

.mini-stat strong,
.feature-card h3,
.service-card h3,
.product-card h3,
.blog-card h3,
.project-card h3,
.value-card h3,
.pricing-card h3,
.legal-card h2,
.side-card h3,
.cta-panel h2 {
  display: block;
  margin-bottom: 8px;
}

.section {
  padding: 36px 0 72px;
}

.section-soft {
  background: linear-gradient(180deg, rgba(19, 104, 255, 0.02), rgba(19, 104, 255, 0.04));
}

.section-dark,
.page-hero-dark {
  background: linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
  color: #fff;
}

.section-dark .section-head p,
.page-hero-dark p,
.section-dark .check-list li {
  color: rgba(232, 241, 255, 0.86);
}

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.card-grid-1 {
  grid-template-columns: 1fr;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.service-card,
.product-card,
.blog-card,
.project-card,
.value-card,
.pricing-card {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover,
.service-card:hover,
.product-card:hover,
.blog-card:hover,
.project-card:hover,
.value-card:hover,
.pricing-card:hover,
.side-card:hover,
.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(19, 104, 255, 0.22);
}

.compact-cards {
  align-self: start;
}

.dark-panel,
.cta-panel,
.legal-card,
.side-card,
.contact-form {
  padding: 28px;
}

.dark-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 20px;
  align-content: start;
}

.check-list {
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.light-list {
  color: var(--muted);
  margin: 18px 0;
}

.page-hero {
  background: linear-gradient(180deg, rgba(19, 104, 255, 0.06), rgba(19, 104, 255, 0));
}

.page-hero.page-hero-dark {
  background: linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
  color: #fff;
}

.page-hero-dark .section-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #8ad8ff;
}

.page-hero-dark h1,
.page-hero-dark h2,
.page-hero-dark h3 {
  color: #fff;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-bar {
  margin-bottom: 28px;
}

.card-link {
  display: grid;
  min-height: 100%;
  gap: 10px;
}

.card-link-label,
.project-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(19, 104, 255, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-link-cta,
.project-link {
  margin-top: 8px;
  color: var(--primary);
  font-weight: 700;
}

.card-link-cta::after,
.project-link::after {
  content: " ->";
}

.filter-grid [hidden] {
  display: none;
}

.single-column {
  grid-template-columns: 1fr;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(19, 104, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(19, 104, 255, 0.08);
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.project-content {
  padding: 24px;
}

.error-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.error-copy,
.error-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.error-copy {
  padding: 34px;
}

.error-copy h1 {
  margin-top: 16px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.08;
}

.error-copy p {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--muted);
}

.error-card {
  padding: 30px;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 84px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.error-card h2 {
  margin-top: 18px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.error-links {
  display: grid;
  gap: 12px;
}

.error-links a {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(19, 104, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.error-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 104, 255, 0.25);
  color: var(--primary);
}

.ai-page-hero {
  position: relative;
  overflow: hidden;
}

.ai-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(22, 198, 231, 0.18), transparent 22%),
    radial-gradient(circle at 82% 24%, rgba(19, 104, 255, 0.22), transparent 24%);
  pointer-events: none;
}

.ai-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.ai-hero-copy {
  display: grid;
  gap: 18px;
}

.ai-hero-copy h1 {
  max-width: 9ch;
  margin-top: 0;
}

.ai-hero-copy p {
  margin-top: 0;
  max-width: 58ch;
  color: rgba(232, 241, 255, 0.86);
}

.ai-hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ai-hero-points .mini-stat {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.ai-hero-points .mini-stat strong {
  color: #fff;
}

.ai-hero-points .mini-stat span {
  color: rgba(232, 241, 255, 0.78);
}

.ai-hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.ai-visual-card,
.ai-terminal-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.ai-visual-head {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-visual-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.ai-visual-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 24px 20px;
}

.ai-flow-node {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-flow-node strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.ai-flow-node p {
  color: rgba(232, 241, 255, 0.76);
}

.ai-flow-arrow {
  color: #8ad8ff;
  font-size: 1.6rem;
  font-weight: 800;
}

.ai-terminal-card {
  padding: 20px 22px;
}

.ai-terminal-card pre {
  margin: 0;
  color: #d8e7ff;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
}

.ai-focus-section {
  padding-top: 46px;
}

.ai-focus-section .split-layout-reverse {
  grid-template-columns: 1fr 1.05fr;
  gap: 34px;
}

.ai-focus-section .section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}

.ai-focus-section .section-head h2,
.ai-focus-section .section-head p {
  margin-top: 0;
}

.ai-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.ai-focus-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8f1ff;
  font-weight: 600;
}

.ai-panel-block {
  display: grid;
  gap: 12px;
}

.ai-panel-block h3 {
  margin: 0;
  color: #fff;
  line-height: 1.25;
}

.ai-panel-block p {
  color: rgba(232, 241, 255, 0.82);
}

.ai-focus-section .dark-panel .btn {
  width: fit-content;
}

.ai-usecase-section .section-head {
  max-width: 760px;
}

.home-tutorials .split-layout,
.home-ai .split-layout {
  align-items: start;
}

.home-tutorials .section-head,
.home-ai .section-head {
  display: grid;
  align-content: start;
  gap: 14px;
  margin-bottom: 0;
}

.home-tutorials .section-head h2,
.home-ai .section-head h2 {
  margin-top: 0;
}

.home-tutorials .section-head p,
.home-ai .section-head p {
  margin-top: 0;
}

.home-tutorials .section-head .btn {
  margin-top: 4px;
  width: fit-content;
}

.home-tutorials .blog-list {
  gap: 20px;
}

.home-tutorials .blog-card,
.home-ai .dark-panel {
  box-shadow: 0 14px 40px rgba(18, 40, 90, 0.08);
}

.home-tutorials .blog-card h3 {
  line-height: 1.3;
}

.home-ai {
  padding-top: 52px;
  padding-bottom: 52px;
}

.home-ai .split-layout-reverse {
  grid-template-columns: 1fr 1.08fr;
  gap: 34px;
}

.home-ai .dark-panel .btn {
  width: fit-content;
}

.site-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(13, 27, 61, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer-inner p,
.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-delay {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-layout,
  .legal-layout,
  .split-layout-reverse,
  .ai-hero-grid,
  .error-layout,
  .highlight-grid,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .home-ai .split-layout-reverse,
  .ai-focus-section .split-layout-reverse,
  .ai-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-ai .dark-panel,
  .ai-focus-section .dark-panel,
  .ai-visual-card,
  .ai-terminal-card {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-inner p {
    max-width: 34ch;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  body.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .home-ai,
  .ai-focus-section,
  .ai-usecase-section {
    padding-top: 38px;
    padding-bottom: 52px;
  }

  .home-ai .section-head,
  .ai-focus-section .section-head,
  .ai-hero-copy {
    gap: 12px;
  }

  .home-ai .section-head h2,
  .ai-focus-section .section-head h2,
  .ai-hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    line-height: 1.14;
  }

  .home-ai .section-head p,
  .ai-focus-section .section-head p,
  .ai-hero-copy p {
    max-width: 100%;
  }

  .home-ai .dark-panel,
  .ai-focus-section .dark-panel {
    gap: 16px;
    padding: 22px;
  }

  .home-ai .check-list,
  .ai-focus-section .check-list {
    gap: 12px;
    padding-left: 20px;
  }

  .home-ai .dark-panel .btn,
  .ai-focus-section .dark-panel .btn {
    width: 100%;
  }

  .ai-hero-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ai-visual-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 18px;
  }

  .ai-flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .ai-terminal-card {
    padding: 18px 20px;
  }

  .contact-actions .btn,
  .contact-actions .btn-disabled {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .footer-links {
    width: 100%;
    row-gap: 8px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .hero-section,
  .page-hero {
    padding-top: 56px;
  }

  .hero-grid,
  .split-layout,
  .legal-layout,
  .split-layout-reverse,
  .ai-hero-grid,
  .error-layout,
  .highlight-grid,
  .card-grid-2,
  .card-grid-3,
  .card-grid-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .ai-hero-points,
  .ai-focus-grid,
  .ai-visual-body {
    grid-template-columns: 1fr;
  }

  .ai-flow-arrow {
    justify-self: start;
    transform: rotate(90deg);
  }

  .home-ai,
  .ai-focus-section,
  .ai-usecase-section {
    padding-top: 34px;
    padding-bottom: 48px;
  }

  .home-ai .split-layout-reverse,
  .ai-focus-section .split-layout-reverse,
  .ai-hero-grid {
    gap: 20px;
  }

  .home-ai .section-head h2,
  .ai-focus-section .section-head h2,
  .ai-hero-copy h1 {
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

  .home-ai .section-head p,
  .ai-focus-section .section-head p,
  .ai-hero-copy p {
    font-size: 1rem;
  }

  .home-ai .dark-panel,
  .ai-focus-section .dark-panel,
  .ai-visual-card,
  .ai-terminal-card {
    padding: 20px;
    border-radius: 22px;
  }

  .ai-hero-points .mini-stat,
  .ai-flow-node {
    min-width: 0;
    padding: 16px;
  }

  .ai-visual-head {
    padding: 14px 16px;
  }

  .ai-terminal-card pre {
    font-size: 0.84rem;
    line-height: 1.6;
  }


  .hero-visual {
    min-height: auto;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .footer-inner {
    gap: 10px;
  }

  .footer-inner p {
    max-width: 26ch;
  }

  .footer-links {
    justify-content: center;
    row-gap: 8px;
  }

  .site-nav a.is-active::after {
    display: none;
  }

  .back-to-top {
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

@media (max-width: 520px) {
  .ai-page-hero {
    padding-bottom: 42px;
  }

  .ai-focus-grid {
    grid-template-columns: 1fr;
  }

  .home-ai .dark-panel,
  .ai-focus-section .dark-panel {
    gap: 16px;
  }

  .home-ai .dark-panel .btn,
  .ai-focus-section .dark-panel .btn,
  .hero-actions .btn,
  .contact-actions .btn,
  .contact-actions .btn-disabled {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
  }

  .footer-links {
    width: 100%;
  }

  .footer-links a {
    flex: 1 1 calc(33.333% - 8px);
    text-align: center;
  }

  .back-to-top {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}
