:root {
  --bg: #09090b;
  --surface: #121215;
  --surface-hover: #18181c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --accent: #ffffff;
  --accent-text: #09090b;
  --radius-card: 24px;
  --radius-pill: 999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.brand .dot {
  color: #71717a;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--text-primary);
}

/* 3-Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--accent);
  color: var(--accent-text);
}

.flag {
  font-size: 0.95rem;
  line-height: 1;
}

/* Hero & Subpage Headers */
.hero,
.page-header {
  padding: 88px 24px 64px;
  max-width: 860px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero h1,
.page-header h1,
.legal-page h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

/* Bento Grid */
.showcase {
  padding: 24px 24px 80px;
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.card {
  grid-column: span 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}

.card-wide {
  grid-column: span 7;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #050507;
  overflow: hidden;
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.card-info {
  padding: 22px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}

.card-info h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.card-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.expand-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

/* Specs & Contact Cards */
.specs,
.contact-grid-wrap {
  padding: 16px 24px 88px;
}

.spec-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.spec-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.spec-num {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.spec-item h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.spec-item p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.card-action-top {
  margin-top: 22px;
}

/* CTA */
.cta-section {
  padding-bottom: 96px;
}

.cta-box {
  background: linear-gradient(180deg, #151519 0%, #0f0f12 100%);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 64px 28px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Legal Pages */
.legal-page {
  max-width: 820px;
  padding: 72px 24px 88px;
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
}

.legal-card h2 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.page-nav-bottom {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Video Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  background: #121215;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(18, 18, 21, 0.85);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
}

.modal-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-meta {
  padding: 20px 24px;
}

.modal-meta h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.modal-meta p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .card, .card-wide {
    grid-column: span 12;
  }
  .spec-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero,
  .page-header {
    padding: 56px 20px 44px;
  }
  .card-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .legal-card {
    padding: 26px 20px;
  }
}