@import url('../css/core/_animations.css');
@import url('../css/core/_utilities.css');

:root {
  --gray-950: #22252b;
  --gray-900: #2a2e35;
  --gray-800: #32373f;

  --accent-amber: #ffb347;
  --accent-rust: #e07400;
  --accent-olive: #72c024;
  --accent-forest: #4a8218;
  --accent-ink: #1a1918;
  --accent-parchment: #f7f6f4;

  --primary: var(--accent-olive);
  --secondary: var(--accent-amber);
  --text-primary: #f8fafc;
  --text-secondary: #d7dde7;
  --text-muted: #7f8a9c;
  --bg-card: rgba(30, 36, 46, 0.74);
  --bg-panel: rgba(24, 28, 36, 0.86);
  --border: rgba(148, 163, 184, 0.14);
  --shadow-deep: rgba(0, 0, 0, 0.55);
  --label-ink: #cfb073;
}

html[data-theme="light"] {
  --gray-950: #f8fafc;
  --gray-900: #f1f5f9;
  --gray-800: #e2e8f0;
  --primary: #4a8218;
  --secondary: #c06000;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-panel: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.12);
  --shadow-deep: rgba(15, 23, 42, 0.15);
  --label-ink: #765316;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(114, 192, 36, 0.1), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255, 179, 71, 0.09), transparent 26%),
    linear-gradient(180deg, rgba(11, 16, 24, 0.98), rgba(24, 34, 47, 0.96));
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(114, 192, 36, 0.12), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255, 179, 71, 0.11), transparent 26%),
    linear-gradient(180deg, #f8fafc, #eef3f8);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 179, 71, 0.05), transparent 28%),
    linear-gradient(315deg, rgba(114, 192, 36, 0.05), transparent 24%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: min(1380px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  padding: clamp(0.75rem, 2vh, 1.4rem) 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  color-scheme: dark;
}

html[data-theme="light"] header {
  background: rgba(248, 250, 252, 0.92);
  color-scheme: light;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:hover svg {
  color: var(--secondary);
}

.back-link svg {
  width: 18px;
  height: 18px;
  transition: color 0.2s ease;
}

.logo {
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  font-weight: 700;
  color: #08c4ff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-spacer {
  width: 80px;
}

main {
  padding-block: clamp(1.8rem, 4vw, 3.2rem) clamp(3rem, 6vw, 5rem);
}

.brand-stage {
  display: block;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.brand-stage-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(27, 33, 42, 0.92), rgba(22, 27, 35, 0.88));
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

html[data-theme="light"] .brand-stage-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.94));
  box-shadow:
    0 22px 64px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(114, 192, 36, 0.12), transparent 28%);
  pointer-events: none;
}

.product-preview-frame {
  position: relative;
  width: 100%;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  background: rgba(24, 20, 16, 0.9);
}

.product-preview-art {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(1.2rem, 2.6vw, 1.8rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(56, 189, 248, 0.08);
  color: #b9c7d9;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="light"] .hero-badge {
  color: #38516c;
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  color: #30caff;
}

.hero-logo-lockup {
  display: grid;
  gap: 1.05rem;
}

.hero-logo {
  width: min(320px, 100%);
  max-width: 100%;
  display: block;
  border-radius: 0.9rem;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
}

.hero-title-block {
  display: grid;
  gap: 0.5rem;
}

.hero-kicker {
  color: var(--label-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.3rem, 5.8vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-description {
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.45vw, 1.09rem);
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.18);
  background: rgba(255, 179, 71, 0.08);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 560;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
}

.cta-button,
.secondary-link,
.link-list a {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.92rem 1.28rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 700;
  color: #0c1b10;
  background: linear-gradient(135deg, var(--accent-olive), #39d18b);
  box-shadow: 0 16px 30px rgba(8, 31, 16, 0.24);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.88rem 1.18rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.cta-button:hover,
.secondary-link:hover,
.link-list a:hover {
  transform: translateY(-1px);
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}

.hero-meta a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.hero-aside {
  display: grid;
  align-items: center;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr;
  gap: 1.05rem;
}

.content-card,
.feature-card,
.link-list a {
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: var(--bg-card);
  border-radius: 1.3rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.content-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.15rem, 2vw, 1.5rem);
}

.content-card::before,
.feature-card::before,
.link-list a::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.22), rgba(114, 192, 36, 0.12), transparent 72%);
  pointer-events: none;
}

.content-card-wide {
  grid-column: span 2;
}

.content-card h2,
.section-header h2 {
  font-size: clamp(1.32rem, 2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.88rem;
}

.content-card p + p {
  margin-top: 0.9rem;
}

.content-card p,
.section-header p,
.feature-card p,
.difference-list,
.metric-list dd {
  color: var(--text-secondary);
}

.difference-list {
  list-style: none;
  display: grid;
  gap: 0.88rem;
}

.difference-list li {
  padding-left: 1rem;
  border-left: 2px solid rgba(114, 192, 36, 0.55);
}

.metric-label {
  color: var(--label-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.metric-list {
  display: grid;
  gap: 0.9rem;
}

.metric-list dt {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.capabilities,
.links-section {
  margin-top: clamp(2.4rem, 5vw, 3.35rem);
}

.section-shell {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.6rem);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(21, 27, 35, 0.76), rgba(18, 23, 31, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.section-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.04), transparent 30%),
    radial-gradient(circle at bottom right, rgba(114, 192, 36, 0.04), transparent 28%);
  pointer-events: none;
}

.section-shell::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 1rem;
  width: min(6rem, calc(100% - 2rem));
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 179, 71, 0.55), rgba(114, 192, 36, 0.22));
  pointer-events: none;
}

html[data-theme="light"] .section-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 251, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.section-header {
  position: relative;
  z-index: 1;
  max-width: 64ch;
  margin-bottom: 1.1rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.62rem;
  color: var(--label-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.capabilities-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(0.95rem, 1.8vw, 1.18rem);
}

.feature-card h3 {
  font-size: 1.02rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.link-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.link-list a {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.4rem;
  min-height: 100%;
  padding: 0.95rem 2.7rem 0.95rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
}

.link-list a > .swarm-arrow {
  position: absolute;
  top: 1rem;
  right: 1.05rem;
  margin: 0;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.link-list span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.link-list strong {
  font-size: 1rem;
  line-height: 1.35;
}

.link-list a:is(:hover, :focus-visible) > .swarm-arrow {
  color: var(--secondary);
}

.site-footer {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vh, 2.5rem) 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(34, 37, 43, 0.6);
  color: var(--text-secondary);
  cursor: pointer;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.8);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: rgba(114, 192, 36, 0.3);
}

.theme-toggle-icon {
  display: inline-flex;
  position: relative;
  width: 18px;
  height: 18px;
}

.theme-toggle-icon svg {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle-icon .icon-sun {
  opacity: 0;
  transform: rotate(-90deg);
}

html[data-theme="light"] .theme-toggle-icon .icon-sun {
  opacity: 1;
  transform: rotate(0deg);
}

html[data-theme="light"] .theme-toggle-icon .icon-moon {
  opacity: 0;
  transform: rotate(90deg);
}

.theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 1140px) {
  .hero-layout,
  .content-grid,
  .capabilities-grid,
  .link-list {
    grid-template-columns: 1fr;
  }

  .content-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    max-width: min(100%, calc(100% - 2rem));
    padding: 0 1rem;
  }

  .nav-spacer {
    display: none;
  }

  .logo {
    margin-left: auto;
  }

  .brand-stage-panel {
    border-radius: 1.2rem;
  }

  .hero-aside {
    order: -1;
  }

  .section-shell {
    padding: 0.95rem;
    border-radius: 1.2rem;
  }

  .hero {
    padding: 1rem;
  }

  .hero-points {
    display: grid;
  }

  .footer-content {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }
}
