/* ================================================================
   SignalTools — Design System
   Brand: Navy (#0F172A) + Amber (#F59E0B) + White (#FFFFFF)
   Typography: Inter (headings bold, body regular)
   ================================================================ */

/* --- Tokens --- */
:root {
  /* Brand */
  --navy: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-500: #64748B;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --amber-light: #FCD34D;
  --amber-50: #FFFBEB;
  --white: #FFFFFF;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --orange: #F97316;
  --red: #EF4444;
  --red-dark: #DC2626;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --max-w: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 24px rgba(15,23,42,0.12);
  --shadow-xl: 0 16px 48px rgba(15,23,42,0.16);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
  --duration-slow: 0.4s;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Focus --- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section { padding: var(--sp-16) 0; }
.section--lg { padding: var(--sp-24) 0; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.header--scrolled {
  border-bottom-color: var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
}

.logo svg { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; gap: var(--sp-6); }

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate-600);
  transition: color var(--duration) var(--ease);
}

.nav__link:hover { color: var(--navy); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  min-height: 44px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--amber);
  color: var(--navy);
}

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

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--slate-300);
}

.btn--outline:hover {
  border-color: var(--navy);
  background: var(--slate-50);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-800);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: var(--sp-20) 0 var(--sp-16);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: var(--sp-5);
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: var(--sp-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-md);
}

.card--feature {
  background: var(--navy);
  border-color: var(--amber);
  border-width: 2px;
  color: var(--white);
  padding: var(--sp-8) var(--sp-8);
}

.card--feature:hover {
  box-shadow: 0 8px 32px rgba(245,158,11,0.2);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

.badge--amber {
  background: var(--amber);
  color: var(--navy);
}

.badge--slate {
  background: var(--slate-200);
  color: var(--slate-600);
}

.badge--live {
  background: rgba(245,158,11,0.15);
  color: var(--amber-dark);
}

.badge--coming {
  background: var(--slate-100);
  color: var(--slate-500);
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--sp-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--tools { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* --- Section Headings --- */
.section__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--slate-500);
  margin-bottom: var(--sp-10);
}

/* --- Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-base);
  line-height: 1.5;
}

.feature-list__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--amber-light);
}

/* --- Tool Card --- */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease);
}

.tool-card--live {
  border-color: rgba(245,158,11,0.3);
}

.tool-card--live:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 16px rgba(245,158,11,0.12);
  transform: translateY(-2px);
}

.tool-card--coming {
  opacity: 0.7;
}

.tool-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  border-radius: var(--radius-md);
  color: var(--slate-600);
}

.tool-card--live .tool-card__icon {
  background: var(--amber-50);
  color: var(--amber-dark);
}

.tool-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
}

.tool-card__desc {
  font-size: var(--text-sm);
  color: var(--slate-600);
  line-height: 1.5;
}

.tool-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.tool-card__link:hover { text-decoration: underline; }

/* --- Values (Why) Section --- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.value__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-50);
  border-radius: var(--radius-md);
  color: var(--amber-dark);
  margin-bottom: var(--sp-4);
}

.value__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.value__text {
  font-size: var(--text-sm);
  color: var(--slate-600);
  line-height: 1.6;
}

/* --- CTA / Email Section --- */
.cta-section {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
}

.cta-section__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.cta-section__text {
  color: var(--slate-300);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  display: flex;
  gap: var(--sp-3);
  max-width: 420px;
  margin: 0 auto var(--sp-4);
}

.email-form__input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-md);
  background: var(--navy-800);
  color: var(--white);
  min-height: 44px;
}

.email-form__input::placeholder { color: var(--slate-400); }
.email-form__input:focus { border-color: var(--amber); outline: none; }

.cta-section__privacy {
  font-size: var(--text-xs);
  color: var(--slate-400);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--slate-200);
  padding: var(--sp-10) 0 var(--sp-8);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

.footer__links {
  display: flex;
  gap: var(--sp-6);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--slate-500);
  transition: color var(--duration) var(--ease);
}

.footer__link:hover { color: var(--navy); }

.footer__copy {
  font-size: var(--text-xs);
  color: var(--slate-400);
  width: 100%;
  text-align: center;
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--slate-100);
}

.footer__akh {
  font-size: var(--text-xs);
  color: var(--slate-400);
  text-align: center;
  margin-top: var(--sp-2);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.hamburger svg { width: 24px; height: 24px; color: var(--navy); }

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-nav--open { display: flex; }

.mobile-nav__panel {
  margin-left: auto;
  width: 280px;
  background: var(--white);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  box-shadow: var(--shadow-xl);
}

.mobile-nav__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__link {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--navy);
  padding: var(--sp-2) 0;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.5s var(--ease) both;
}

.animate-in--d1 { animation-delay: 0.1s; }
.animate-in--d2 { animation-delay: 0.2s; }
.animate-in--d3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- User-select protection --- */
.protected { -webkit-user-select: none; user-select: none; }
.protected a, .protected button, .protected input, .protected textarea { -webkit-user-select: auto; user-select: auto; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: var(--sp-12) 0 var(--sp-10); }
  .grid--2, .grid--3, .values { grid-template-columns: 1fr; }
  .grid--tools { grid-template-columns: 1fr 1fr; }
  .email-form { flex-direction: column; }
  .section { padding: var(--sp-10) 0; }
  .section--lg { padding: var(--sp-16) 0; }
  .card--feature { padding: var(--sp-6); }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .grid--tools { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
