﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-card-hover: #181818;
  --bg-input: rgba(255,255,255,0.04);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --accent-dim: rgba(0,113,227,0.12);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.13);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 980px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.5);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-width: 1280px;
  --nav-height: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 32px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Light mode (Tesla style) ── */
body.light {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f7;
  --bg-input: rgba(0,0,0,0.03);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --border: rgba(0,0,0,0.1);
  --border-hover: rgba(0,0,0,0.18);
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
}

body.light .btn-primary { background: #1d1d1f; color: #fff; }
body.light .btn-primary:hover { background: #000; }
body.light .btn-outline { color: #1d1d1f; border-color: rgba(0,0,0,0.3); }
body.light .btn-outline:hover { background: rgba(0,0,0,0.03); color: #000; }
body.light .navbar.scrolled { background: rgba(255,255,255,0.78); }
body.light .nav-links a { color: rgba(0,0,0,0.6); }
body.light .nav-links a:hover,
body.light .nav-links a.active { background: rgba(0,0,0,0.05); color: #1d1d1f; }
body.light .nav-logo { color: #1d1d1f; }
body.light .nav-toggle span { background: #1d1d1f; }
body.light .hero-bg .grid-overlay::before { background: linear-gradient(90deg, transparent 0%, rgba(0,113,227,0.2) 50%, transparent 100%); }
body.light .stat-number { color: #1d1d1f; }
body.light .footer-logo { color: #1d1d1f; }

a { color: var(--accent); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: #2997ff; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 44px;
}

/* ── Navbar · Apple glass ── */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%; height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), -webkit-backdrop-filter 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(0,0,0,0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  opacity: 0.9;
}

.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 0%, var(--accent-dim) 0%, transparent 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,113,227,0.25) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 50px 50px, 70px 70px;
  background-position: 0 0, 35px 35px;
  animation: grid-drift 20s linear infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0,113,227,0.15) 0%, transparent 100%);
  animation: pulse-orb 5s ease-in-out infinite alternate;
}

.hero-bg .grid-overlay {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg .grid-overlay::before {
  content: '';
  position: absolute;
  top: 15%;
  left: -100%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,113,227,0.3) 50%, transparent 100%);
  animation: scan-line 8s ease-in-out infinite;
}

.hero-bg .grid-overlay::after {
  content: '';
  position: absolute;
  top: 55%;
  left: -100%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  animation: scan-line 12s ease-in-out 3s infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-top: 64px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 auto 48px;
}

.hero-desc {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero p, .hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.gradient-text {
  color: var(--accent);
}

/* ── Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes float-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes grid-drift {
  0% { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, -30px -30px; }
}

@keyframes pulse-orb {
  0% { transform: translateX(-50%) scale(1); opacity: 0.4; }
  100% { transform: translateX(-50%) scale(1.3); opacity: 0.8; }
}

@keyframes scan-line {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.showcase-image.animate-float {
  border: 0.5px solid rgba(0,113,227,0.15);
  box-shadow: 0 0 60px rgba(0,113,227,0.06);
  transition: all 0.6s var(--ease);
}

.showcase-image.animate-float:hover {
  box-shadow: 0 0 100px rgba(0,113,227,0.12);
  animation-play-state: paused;
}

.cfd-visual {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 56px;
}

.cfd-visual img {
  width: 100%;
  display: block;
}

.stat-number.pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.image-full {
  width: 100%;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  margin-top: 48px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 34px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  text-decoration: none;
  min-width: 140px;
  line-height: 1.2;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: #e8e8ed;
  color: #000;
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.02);
}

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-group { justify-content: center; }

/* ── Sections ── */
.section { padding: 160px 0; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 88px;
}

.section-header h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
}

.section-subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

/* ── Page Hero ── */
.page-hero {
  padding: 160px 0 96px;
  text-align: center;
  position: relative;
}

.page-hero .hero-label { margin-bottom: 20px; }

.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.page-hero p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 20px auto 0;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 52px 44px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before { display: none; }

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 28px;
  font-weight: 700;
  color: var(--text-secondary);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 72px 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 0.5px;
  background: var(--border);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 6px;
}

/* ── Showcase ── */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.showcase-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.showcase-image:hover img { transform: scale(1.03); }

.showcase-image .label {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(0,0,0,0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 0.5px solid rgba(255,255,255,0.1);
}

.showcase-info .section-subtitle { margin-bottom: 12px; }

.showcase-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.showcase-info p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 6px 16px;
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  margin-right: 8px;
  margin-bottom: 8px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
}

/* ── Specs Grid ── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-value {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── CFD Table ── */
.cdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.cdf-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 0.5px solid var(--border);
}

.cdf-table td {
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cdf-table tr:last-child td { border-bottom: none; }

.cdf-table .positive {
  color: #30d158;
  font-weight: 700;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--ease);
}

.gallery-item:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow);
  border-color: var(--border-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Feature List ── */
.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 28px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
}

.feature-list li:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-xs);
}

.feature-list .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 1px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.feature-list span {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ── Chart ── */
.chart-container {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}

.chart-container img {
  max-height: 520px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.chart-container .caption {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.7;
  font-size: 1.0625rem;
}

.contact-methods { display: grid; gap: 10px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
}

.contact-method:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-xs);
}

.contact-method .method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method h4 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.contact-method span {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.contact-form {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 52px;
}

.form-group { margin-bottom: 26px; }
.form-group:last-of-type { margin-bottom: 32px; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 9px;
  letter-spacing: 0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0,113,227,0.35);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ── Footer ── */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.footer-logo img { height: 28px; width: auto; opacity: 0.7; }

.footer p {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

/* ── Showcase reverse ── */
.showcase-grid.reverse { direction: rtl; }
.showcase-grid.reverse > * { direction: ltr; }

/* ── Scroll animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

/* ── Custom cursor ── */
.custom-cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor, .custom-cursor-ring { display: none; }
}

.custom-cursor-ring {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0,113,227,0.4);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* ── Loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mesh {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(0,113,227,0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
  position: relative;
}

.loader-mesh::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(0,113,227,0.2);
  border-bottom-color: var(--accent);
  border-radius: 50%;
  animation: spin 1.5s linear infinite reverse;
}

.loader-mesh::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-left-color: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.loader-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Radar chart ── */
.radar-chart {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.radar-chart svg {
  width: 100%;
  height: auto;
}

.radar-label {
  font-size: 0.625rem;
  font-weight: 600;
  fill: var(--text-secondary);
  text-anchor: middle;
}

.radar-poly {
  fill-opacity: 0.15;
  stroke-width: 1.5;
  animation: radar-pulse 3s ease-in-out infinite;
}

@keyframes radar-pulse {
  0%, 100% { fill-opacity: 0.15; }
  50% { fill-opacity: 0.25; }
}

/* ── Before/after slider ── */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  cursor: ew-resize;
  user-select: none;
  background: var(--bg-card);
}

.ba-slider img {
  width: 100%;
  display: block;
}

.ba-before { position: relative; z-index: 1; }

.ba-after {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: auto;
}

.ba-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 6px 18px;
  background: rgba(0,0,0,0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  z-index: 4;
  pointer-events: none;
}

.ba-label.left { left: 20px; }
.ba-label.right { right: 20px; }

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  padding-bottom: 48px;
  padding-left: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.timeline-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
}

.timeline-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.timeline-step p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.timeline-step .timeline-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(0,113,227,0.1);
  color: var(--accent);
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

/* ── Tech badges ── */
.tech-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.35s var(--ease);
}

.tech-badge:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.tech-badge svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Row tooltips ── */
.row-tooltip {
  display: none;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  border: 0.5px solid var(--border);
  pointer-events: none;
  z-index: 100;
}

[data-tooltip] {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted rgba(0,113,227,0.4);
}

[data-tooltip]:hover .row-tooltip {
  display: block;
}

/* ── Roadmap ── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.4s var(--ease);
}

.roadmap-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.roadmap-status {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.roadmap-status.active {
  background: rgba(48,209,88,0.12);
  color: #30d158;
}

.roadmap-status.soon {
  background: rgba(0,113,227,0.12);
  color: var(--accent);
}

.roadmap-status.research {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.roadmap-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.roadmap-card p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ── Trust badge ── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-pill);
  max-width: fit-content;
  margin: 32px auto 0;
}

.trust-badge svg { width: 18px; height: 18px; color: var(--accent); }

.trust-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}

/* ── Footer enhanced ── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col p,
.footer-col a {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  display: block;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.6875rem;
}

@media (max-width: 1024px) {
  .showcase-grid { gap: 64px; }
}

@media (max-width: 968px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 56px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .section { padding: 120px 0; }
}

@media (max-width: 768px) {
  :root { --nav-height: 48px; }
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.94);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    transition: right 0.4s var(--ease);
  }

  .nav-links a { font-size: 1.5rem; padding: 14px 28px; }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }

  .hero h1 { font-size: 2.8rem; }
  .hero p, .hero-sub { font-size: 1.0625rem; }
  .hero-logo { width: 120px; }
  .hero-content { padding-top: 32px; }
  .section { padding: 104px 0; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 48px 0; }
  .stat-item:nth-child(2)::after { display: none; }
  .page-hero { padding: 128px 0 72px; }
  .page-hero h1 { font-size: 2.2rem; }
  .chart-container { padding: 40px 24px; }
  .card { padding: 40px 32px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 40px 28px; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 32px; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn { width: 100%; min-width: auto; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .showcase-grid { gap: 40px; }
  .showcase-info h3 { font-size: 1.6rem; }
  .section-header h2 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.2rem; }
  .contact-form { padding: 32px 20px; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .tech-badge { padding: 8px 16px; font-size: 0.75rem; }
  .ba-label { font-size: 0.5625rem; padding: 4px 12px; top: 12px; }
}
