/* === CROWN HERO DESIGN SYSTEM === */
/* Color palette — solid hex only, no rgba */
:root {
  --bg-deep: #060e1a;
  --bg-primary: #0a1628;
  --bg-secondary: #0d1f3c;
  --bg-card: #102444;
  --bg-surface: #142a54;
  --bg-input: #0b1a30;
  --border-subtle: #1a3358;
  --border-active: #2a5080;
  --text-primary: #e8ecf1;
  --text-secondary: #b0bdd0;
  --text-muted: #6b7d95;
  --text-placeholder: #4a5d78;
  --gold: #c8a44e;
  --gold-light: #e0c878;
  --gold-dark: #a0802a;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --white: #ffffff;
  --error: #ef4444;
  --success: #22c55e;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', monospace;
  --header-h: 72px;
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-card: 0 2px 12px #00000033;
  --shadow-hover: 0 6px 24px #00000055;
  --transition: 0.28s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === SECTION TITLES === */
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* === HEADER === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-h);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}
.logo-icon { width: 36px; height: 36px; }
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}
.logo-accent { color: var(--gold); }
.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 4px; }
.nav-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--white); background: var(--bg-surface); }
.nav-legal { font-size: 0.82rem; opacity: 0.7; }
.nav-legal:hover { opacity: 1; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 0 100px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--bg-deep) 0%, var(--bg-primary) 30%, var(--bg-secondary) 70%, var(--bg-deep) 100%);
}
.hero-particles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, var(--gold-dark) 50%, transparent),
    radial-gradient(1px 1px at 85% 30%, var(--gold) 50%, transparent),
    radial-gradient(1px 1px at 25% 70%, var(--gold-light) 50%, transparent),
    radial-gradient(1px 1px at 70% 60%, var(--gold-dark) 50%, transparent),
    radial-gradient(1px 1px at 50% 40%, var(--accent-blue) 50%, transparent),
    radial-gradient(1px 1px at 10% 85%, var(--gold) 50%, transparent),
    radial-gradient(1px 1px at 90% 75%, var(--accent-blue) 50%, transparent),
    radial-gradient(2px 2px at 40% 10%, var(--gold-light) 50%, transparent),
    radial-gradient(2px 2px at 60% 90%, var(--gold) 50%, transparent);
  opacity: 0.5;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-title { margin-bottom: 1.5rem; }
.hero-pre {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.hero-main {
  display: block;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  display: block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-geo {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
}
.hero-geo svg { width: 100%; height: 100%; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  border-color: var(--gold);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--bg-deep); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dark);
}
.btn-outline:hover { background: var(--gold-dark); color: var(--white); border-color: var(--gold); }

/* === STATS === */
.stats-section { padding: 80px 0; background: var(--bg-primary); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--gold-dark); }
.stat-icon { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 12px; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* === SERVICES === */
.services-section { padding: 100px 0; background: var(--bg-deep); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-active); box-shadow: var(--shadow-hover); }
.service-icon { width: 52px; height: 52px; margin-bottom: 20px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* === ABOUT === */
.about-section { padding: 100px 0; background: var(--bg-primary); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text .section-title { text-align: left; }
.about-text p { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.8; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--bg-surface);
  border: 1px solid var(--gold-dark);
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.about-visual { display: flex; justify-content: center; align-items: center; }
.about-hex { width: 280px; height: auto; }

/* === CLIENTS === */
.clients-section { padding: 70px 0; background: var(--bg-secondary); }
.clients-marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
}
.client-name { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.03em; }
.client-sep { color: var(--gold-dark); font-size: 0.5rem; }

/* === CONTACT FORM === */
.contact-section { padding: 100px 0; background: var(--bg-deep); }
.contact-form { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #c8a44e1a;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-placeholder); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8a44e' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-group select option { background: var(--bg-primary); color: var(--text-primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; margin-top: 8px; }
.form-feedback {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 24px;
}
.form-feedback.success { color: var(--success); }
.form-feedback.error { color: var(--error); }

/* === FOOTER === */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-subtle); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer-links h4,
.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a, .footer-contact a { font-size: 0.92rem; color: var(--text-secondary); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact p { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* === LEGAL PAGES === */
.legal-page { padding-top: calc(var(--header-h) + 40px); }
.legal-hero {
  text-align: center;
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.legal-meta { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 8px; }
.legal-company { font-size: 1.05rem; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.legal-address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-content { max-width: 800px; padding-bottom: 80px; }

/* Table of Contents */
.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 48px;
}
.legal-toc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal-toc ol { list-style: decimal inside; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { font-size: 0.9rem; color: var(--text-secondary); }
.legal-toc a:hover { color: var(--gold-light); }

/* Legal Sections */
.legal-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 16px;
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.legal-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px;
}
.legal-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
}
.legal-section ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal-section li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-section strong { color: var(--text-primary); font-weight: 600; }

/* === SCROLL ANIMATIONS === */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-toc ol { columns: 1; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1000;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 1.2rem; padding: 14px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-hex { width: 200px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-toc { padding: 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
