/* ============================================
   SCALA — scalascan.com
   Brand teal: #08B0C9  (rgb 0.03, 0.69, 0.79)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --teal: #08B0C9;
  --teal-dark: #069AAF;
  --teal-light: #0CC8E4;
  --teal-glow: rgba(8, 176, 201, 0.15);
  --teal-subtle: rgba(8, 176, 201, 0.06);

  --bg: #FAFBFC;
  --bg-white: #FFFFFF;
  --bg-dark: #0B1120;
  --bg-dark-card: #131B2E;
  --bg-dark-hover: #1A2540;

  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  --text-on-dark: #F1F5F9;
  --text-on-dark-muted: #94A3B8;

  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-teal: 0 8px 30px rgba(8, 176, 201, 0.25);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --max-width: 1180px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ==================== HEADER ==================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  height: 28px;
  width: auto;
}

.header-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-logo-text span {
  color: var(--teal);
}

nav { display: flex; align-items: center; gap: 36px; }

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--teal);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ==================== HERO ==================== */

.hero {
  padding: calc(var(--header-height) + 80px) 32px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--teal-subtle);
  border: 1px solid rgba(8, 176, 201, 0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-dark);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-primary svg { width: 20px; height: 20px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==================== HERO VISUAL ==================== */

.hero-visual {
  max-width: var(--max-width);
  margin: 60px auto 0;
  padding: 0 32px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-mockup {
  position: relative;
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(8, 176, 201, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(8, 176, 201, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.mockup-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-on-dark-muted);
}

.mockup-content p {
  font-size: 1rem;
  opacity: 0.7;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.mockup-grid .screenshot-slot {
  background: var(--bg-dark-card);
  border-radius: var(--radius-md);
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==================== FEATURES ==================== */

.features {
  padding: 120px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
}

.features-header {
  margin-bottom: 64px;
}

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

.feature-card {
  padding: 36px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== HOW IT WORKS ==================== */

.how-it-works {
  padding: 100px 32px 120px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how-it-works .section-title {
  color: var(--text-on-dark);
}

.how-it-works .section-subtitle {
  color: var(--text-on-dark-muted);
}

.how-header { margin-bottom: 64px; }

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

.step {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-dark-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.step:hover {
  background: var(--bg-dark-hover);
  border-color: rgba(8, 176, 201, 0.3);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

/* ==================== USE CASES ==================== */

.use-cases {
  padding: 120px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.use-cases-header { margin-bottom: 64px; }

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.use-case {
  padding: 40px 36px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.use-case:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.use-case-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.use-case h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.use-case p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== CTA ==================== */

.cta-section {
  padding: 100px 32px;
}

.cta-box {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  padding: 72px 48px;
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(8,176,201,0.15), transparent 70%);
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(8,176,201,0.1), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 16px;
  position: relative;
  letter-spacing: -0.025em;
}

.cta-box p {
  color: var(--text-on-dark-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
  position: relative;
}

.cta-box .btn-primary { position: relative; }

/* ==================== FOOTER ==================== */

.site-footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.footer-logo span { color: var(--teal); }

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

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* ==================== LEGAL PAGES ==================== */

.legal-page {
  padding: calc(var(--header-height) + 60px) 32px 80px;
  max-width: 780px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 6px;
}

/* ==================== SUPPORT PAGE ==================== */

.support-page {
  padding: calc(var(--header-height) + 60px) 32px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.support-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  text-align: center;
}

.support-page > p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 56px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}

.support-card {
  padding: 36px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
}

.support-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.support-card-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--teal);
}

.support-card-icon svg { width: 24px; height: 24px; }

.support-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.support-card a.card-link {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
}

.faq-section { max-width: 680px; margin: 0 auto; }

.faq-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--teal);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-top: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.mockup-grid img {
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: auto;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
  .features-grid, .steps { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .mockup-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-height) + 48px); padding-bottom: 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .hero-mockup { padding: 24px; border-radius: var(--radius-lg); }
  .mockup-grid { grid-template-columns: 1fr; }

  nav { display: none; }
  .menu-toggle { display: flex; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-white);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .footer-left { flex-direction: column; gap: 8px; }

  .cta-box { padding: 48px 28px; }
}
