@import url('./tokens.css');

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--rt-font-sans);
  color: var(--rt-color-text);
  background: radial-gradient(1200px 700px at 20% 0%, rgba(255, 178, 74, 0.20), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(75, 130, 240, 0.18), transparent 55%),
              linear-gradient(180deg, var(--rt-color-bg), var(--rt-color-bg-2));
  line-height: var(--rt-leading-normal);
}

a { color: var(--rt-color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 10px 12px;
  border-radius: var(--rt-radius-sm);
  border: 1px solid var(--rt-color-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--rt-shadow-sm);
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--rt-container);
  padding: 0 var(--rt-space-6);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 240, 0.72);
  border-bottom: 1px solid var(--rt-color-border);
}

.header-inner {
  height: var(--rt-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--rt-space-3);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: var(--rt-radius-md);
  background: linear-gradient(135deg, rgba(75, 130, 240, 0.95), rgba(46, 201, 166, 0.92));
  box-shadow: var(--rt-shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--rt-space-5);
}

.nav a {
  color: var(--rt-color-text);
  font-weight: 600;
  font-size: var(--rt-text-sm);
  opacity: 0.9;
}

.header-actions {
  display: flex;
  gap: var(--rt-space-3);
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rt-space-2);
  padding: 10px 14px;
  border-radius: var(--rt-radius-sm);
  border: 1px solid var(--rt-color-border);
  background: rgba(255, 255, 255, 0.65);
  color: var(--rt-color-text);
  font-weight: 700;
  font-size: var(--rt-text-sm);
  transition: transform var(--rt-dur) var(--rt-ease), box-shadow var(--rt-dur) var(--rt-ease), background var(--rt-dur) var(--rt-ease);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--rt-shadow-sm);
  background: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, rgba(75, 130, 240, 1), rgba(46, 201, 166, 0.95));
  color: white;
  border: 0;
}

.button.primary:hover {
  box-shadow: var(--rt-shadow-md);
}

.button.ghost {
  background: transparent;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--rt-radius-pill);
  border: 1px solid var(--rt-color-border);
  background: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: var(--rt-text-sm);
}

.hero {
  padding: var(--rt-space-16) 0 var(--rt-space-12);
}

.page-hero {
  padding: var(--rt-space-12) 0 var(--rt-space-8);
}

.breadcrumbs {
  color: var(--rt-color-muted);
  font-size: var(--rt-text-sm);
  margin: 0 0 var(--rt-space-3);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--rt-space-10);
  align-items: center;
}

.h1 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: var(--rt-leading-tight);
  margin: 0 0 var(--rt-space-4);
}

.lead {
  font-size: var(--rt-text-lg);
  line-height: var(--rt-leading-relaxed);
  color: var(--rt-color-muted);
  margin: 0 0 var(--rt-space-6);
}

.hero-cta {
  display: flex;
  gap: var(--rt-space-3);
  flex-wrap: wrap;
  margin-bottom: var(--rt-space-5);
}

.hero-chips {
  display: flex;
  gap: var(--rt-space-3);
  flex-wrap: wrap;
}

.section {
  padding: var(--rt-space-16) 0;
}

.section-title {
  font-size: var(--rt-text-2xl);
  margin: 0 0 var(--rt-space-3);
}

.section-subtitle {
  margin: 0 0 var(--rt-space-8);
  color: var(--rt-color-muted);
  font-size: var(--rt-text-md);
  line-height: var(--rt-leading-relaxed);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rt-space-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rt-space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--rt-space-5);
}

.card {
  border: 1px solid var(--rt-color-border);
  border-radius: var(--rt-radius-md);
  background: var(--rt-color-surface);
  box-shadow: var(--rt-shadow-sm);
  padding: var(--rt-space-6);
  position: relative;
  overflow: hidden;
}

.card:before {
  content: "";
  position: absolute;
  top: -30px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 178, 74, 0.35), transparent 62%);
}

.card:hover {
  transform: translateY(-2px);
  transition: transform var(--rt-dur) var(--rt-ease);
}

.kicker {
  font-size: var(--rt-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(31, 41, 55, 0.55);
  font-weight: 800;
  margin-bottom: var(--rt-space-2);
}

.card-title {
  font-size: var(--rt-text-xl);
  margin: 0 0 var(--rt-space-2);
}

.card-text {
  margin: 0;
  color: var(--rt-color-muted);
  line-height: var(--rt-leading-relaxed);
}

.illustration {
  border-radius: var(--rt-radius-md);
  border: 1px dashed rgba(31, 41, 55, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.25));
  padding: var(--rt-space-6);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.illustration .bubble {
  position: absolute;
  border-radius: var(--rt-radius-pill);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--rt-color-border);
  box-shadow: var(--rt-shadow-sm);
  font-weight: 800;
  font-size: var(--rt-text-sm);
}

.illustration .bubble.b1 { left: 18px; top: 18px; }
.illustration .bubble.b2 { right: 18px; top: 70px; }
.illustration .bubble.b3 { left: 24px; bottom: 20px; }

.floaty {
  animation: floaty 4.6s var(--rt-ease) infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.footer {
  padding: var(--rt-space-12) 0;
  border-top: 1px solid var(--rt-color-border);
  background: rgba(255, 255, 255, 0.30);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--rt-space-8);
}

.footer a { color: var(--rt-color-text); opacity: 0.85; }
.footer a:hover { opacity: 1; }

.small { font-size: var(--rt-text-sm); color: var(--rt-color-muted); }

.mobile-only { display: none; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--rt-radius-sm);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--rt-header-h) 0 auto 0;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rt-color-border);
  padding: var(--rt-space-6);
}

.mobile-drawer a {
  display: block;
  padding: 12px 0;
  font-weight: 800;
  color: var(--rt-color-text);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.55);
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: var(--rt-space-6);
}

.modal.open { display: flex; }

.modal-card {
  width: min(920px, 100%);
  border-radius: var(--rt-radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rt-color-border);
  box-shadow: var(--rt-shadow-md);
  overflow: hidden;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--rt-space-4) var(--rt-space-6);
  border-bottom: 1px solid var(--rt-color-border);
}

.modal-body { padding: 0; }

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: radial-gradient(900px 600px at 30% 20%, rgba(75, 130, 240, 0.22), transparent 55%),
              radial-gradient(900px 600px at 90% 30%, rgba(46, 201, 166, 0.18), transparent 55%),
              linear-gradient(180deg, rgba(255, 248, 240, 1), rgba(238, 246, 255, 1));
  display: grid;
  place-items: center;
}

.video-placeholder {
  text-align: center;
  padding: var(--rt-space-10);
}

.video-placeholder strong { display: block; font-size: var(--rt-text-xl); margin-bottom: var(--rt-space-2); }

.accordion {
  border: 1px solid var(--rt-color-border);
  border-radius: var(--rt-radius-md);
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.accordion details { padding: var(--rt-space-4) var(--rt-space-5); }
.accordion details + details { border-top: 1px solid var(--rt-color-border); }
.accordion summary { cursor: pointer; font-weight: 900; }
.accordion p { margin: var(--rt-space-3) 0 0; color: var(--rt-color-muted); line-height: var(--rt-leading-relaxed); }

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: var(--rt-text-xl);
  margin: var(--rt-space-8) 0 var(--rt-space-3);
}

.prose h3 {
  font-size: var(--rt-text-lg);
  margin: var(--rt-space-6) 0 var(--rt-space-2);
}

.prose p,
.prose li {
  color: var(--rt-color-muted);
  line-height: var(--rt-leading-relaxed);
}

.prose ul { padding-left: 18px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-3);
  margin-bottom: var(--rt-space-5);
}

.tab {
  cursor: pointer;
  user-select: none;
}

.tab[aria-selected="true"] {
  background: rgba(75, 130, 240, 0.12);
  border-color: rgba(75, 130, 240, 0.35);
}

.tab-panels > [data-tab-panel] { display: none; }
.tab-panels > [data-tab-panel].active { display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-only { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .floaty { animation: none !important; }
  .button, .card { transition: none !important; }
}
