/* ============================================================
   MIKASA AI — Velvet & Cardinal Red
   World-class dark luxury velvet aesthetic.
   ============================================================ */

/* ── Variables ── */
:root {
  /* Backgrounds */
  --bg-primary: #070709;
  --bg-secondary: #0f0a0d;
  --bg-card: #0d0b10;
  --bg-overlay: rgba(7, 7, 9, 0.85);

  /* Accents */
  --accent: #c0272d;
  --accent-light: #d9444a;
  --accent-deep: #8b1a1a;
  --accent-glow: rgba(192, 39, 45, 0.4);
  --accent-dim: rgba(192, 39, 45, 0.12);

  --accent2: #c9a84c;
  --accent2-light: #e8c96b;
  --accent2-dim: rgba(201, 168, 76, 0.15);

  /* Text */
  --text: #e8e0d8;
  --text-muted: #a09890;
  --text-dim: #7a7068;

  /* Borders */
  --border: rgba(201, 168, 76, 0.12);
  --border-hover: rgba(192, 39, 45, 0.5);
  --border-bright: rgba(201, 168, 76, 0.25);

  /* Shadows */
  --shadow-red: 0 8px 40px rgba(192, 39, 45, 0.3);
  --shadow-red-strong: 0 12px 50px rgba(192, 39, 45, 0.45);
  --shadow-gold: 0 8px 40px rgba(201, 168, 76, 0.15);

  /* Typography */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, monospace;

  /* Spacing */
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Selection ── */
::selection {
  background: var(--accent);
  color: var(--accent2);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Ambient Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(192, 39, 45, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(192, 39, 45, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 9, 0.6);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(7, 7, 9, 0.92);
  border-bottom-color: var(--border-bright);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 10px var(--accent-glow));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50% { filter: drop-shadow(0 0 16px var(--accent-glow)) drop-shadow(0 0 30px rgba(192, 39, 45, 0.3)); }
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent2);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  transform: scaleX(1);
  background: var(--accent2);
}

.nav-cta {
  color: var(--text) !important;
  background: rgba(192, 39, 45, 0.1);
  border: 1px solid var(--border-hover) !important;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-red);
  color: var(--text) !important;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

@media (max-width: 768px) {
  nav {
    background: rgba(7, 7, 9, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    z-index: 1001;
  }
  .hamburger { background: #fff; }
  .hamburger::before,
  .hamburger::after { background: #fff; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-links .nav-cta {
    display: block;
    padding: 15px 28px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .nav-links li:last-child a { border-bottom: none; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 28px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(192, 39, 45, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(201, 168, 76, 0.08) 0%, transparent 55%);
  pointer-events: none;
  animation: heroOrb 10s ease-in-out infinite alternate;
}

@keyframes heroOrb {
  0% { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.06); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.6) brightness(0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(192, 39, 45, 0.25);
  padding: 7px 16px;
  border-radius: 100px;
  animation: fadeUp 0.7s ease forwards;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--text);
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-tagline {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.7;
  font-weight: 400;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-quote {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 48px;
  animation: fadeUp 0.7s ease 0.25s both;
}

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

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent2);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px) scale(1.02);
  color: var(--text);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0) scale(1); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  background: transparent;
  color: var(--accent2);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  border: 1px solid var(--accent2);
}

.btn-ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

/* ── Sections ── */
.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 50%, rgba(192, 39, 45, 0.03) 0%, transparent 55%);
  pointer-events: none;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
}

.section-header {
  margin-bottom: 60px;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(192, 39, 45, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-red);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ── How It Works ── */
.how-steps {
  margin-top: 64px;
  position: relative;
  padding-left: 48px;
}

.how-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent2), var(--accent2-dim), transparent);
}

.how-step {
  position: relative;
  margin-bottom: 48px;
}

.how-step:last-child { margin-bottom: 0; }

.step-number {
  position: absolute;
  left: -48px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  box-shadow: 0 0 20px var(--accent-glow);
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ── Services Section ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-red);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 120px 28px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(192, 39, 45, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 28px 40px;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color var(--transition);
  letter-spacing: 0.04em;
}

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

.footer-copyright {
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

/* ── Language Switcher ── */
.lang-switcher-container {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switcher-btn:hover {
  border-color: var(--accent2);
  color: var(--text);
}

.lang-switcher-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 160px;
  z-index: 200;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: var(--transition-fast);
  cursor: pointer;
  background: transparent;
  border: none;
}

.lang-option:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.lang-option.active {
  color: var(--accent2);
  background: var(--accent2-dim);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 40px; }
  .hero { padding: 100px 20px 60px; }
  .cta-section { padding: 80px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero h1 { letter-spacing: -0.01em; }
  .card { padding: 28px 20px; }
  .how-steps { padding-left: 40px; }
  .how-steps::before { left: 15px; }
  .step-number { left: -40px; width: 32px; height: 32px; font-size: 14px; }
}

/* Army Banner - Mobile First */
.army-banner {
  width: 100%;
  max-width: 100vw;
  height: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.army-banner img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 15% center;
}

/* Tablet */
@media (min-width: 768px) {
  .army-banner {
    height: 260px;
  }
  .army-banner img {
    height: 100%;
  }
}

/* Desktop - larger banner */
@media (min-width: 1024px) {
  .army-banner {
    height: 520px;
  }
}
