/* ============================================================
   DAWN WHISPER — style.css
   Brand: 儋州拂夕科技有限公司
   Design: Dawn Whisper — midnight to sunrise palette
   Mobile-first, no templates, strong contrast
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Dawn palette */
  --color-abyss: #060f1e;
  --color-midnight: #0b1a30;
  --color-deep: #0f1f3a;
  --color-twilight: #162744;
  --color-slate: #1e3252;
  --color-dusk: #2a4062;

  --color-gold: #c8923f;
  --color-gold-bright: #d4a24e;
  --color-amber: #e8b86d;
  --color-sunrise: #f0c878;
  --color-dawn: #f5e6d3;
  --color-cream: #faf7f2;
  --color-cloud: #fdfcf9;

  --color-teal: #3b8298;
  --color-teal-light: #5aa3b8;
  --color-steel: #5a7a9a;
  --color-moss: #5a8f6c;
  --color-rose: #b85a5a;

  /* Functional */
  --color-text: #1a1a28;
  --color-text-soft: #3d3d52;
  --color-text-inverse: #f2efe8;
  --color-text-muted: #8a8a9a;
  --color-surface: #ffffff;
  --color-surface-alt: #f7f5f0;
  --color-border: #e0dcd4;
  --color-border-light: #ede9e2;

  /* Typography */
  --font-sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
  --font-heading: var(--font-sans);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --nav-height: 4.5rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 20px rgba(200,146,63,0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-glacial: 800ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-cloud);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  font-weight: 700;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-24) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  width: 2.5rem;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-abyss);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-abyss);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,146,63,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-cloud);
  border: 2px solid rgba(250,247,242,0.3);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(200,146,63,0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gold);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(200,146,63,0.08);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(6,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200,146,63,0.1);
  transition: background var(--duration-normal);
}

.nav.scrolled {
  background: rgba(6,15,30,0.98);
  border-bottom-color: rgba(200,146,63,0.2);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-cream);
  letter-spacing: -0.01em;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-inverse);
  opacity: 0.8;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  color: var(--color-gold);
  background: rgba(200,146,63,0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-abyss);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hero-bg-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-gold), transparent);
  top: -200px;
  right: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.hero-bg-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-teal), transparent);
  bottom: -100px;
  left: -50px;
  animation: orbFloat2 15s ease-in-out infinite;
}

.hero-bg-orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--color-amber), transparent);
  top: 40%;
  left: 50%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.1); }
  66% { transform: translate(-20px, -20px) scale(0.9); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -40px) scale(1.15); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(25px, -15px) scale(1.05); }
  75% { transform: translate(-35px, 20px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,146,63,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,146,63,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-20) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.375rem 1rem;
  background: rgba(200,146,63,0.1);
  border: 1px solid rgba(200,146,63,0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  font-weight: 800;
  color: var(--color-cream);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-title-em {
  display: block;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-amber) 40%, var(--color-sunrise) 70%, var(--color-gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

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

.hero-desc {
  font-size: var(--text-xl);
  color: var(--color-text-inverse);
  opacity: 0.75;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  max-width: 600px;
}

.hero-visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,146,63,0.08);
  animation: ringSpin 30s linear infinite;
}

.hero-visual-ring:nth-child(1) { width: 500px; height: 500px; }
.hero-visual-ring:nth-child(2) { width: 400px; height: 400px; animation-direction: reverse; animation-duration: 25s; }
.hero-visual-ring:nth-child(3) { width: 300px; height: 300px; animation-duration: 20s; }
.hero-visual-ring:nth-child(4) { width: 200px; height: 200px; animation-direction: reverse; animation-duration: 15s; }

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Services ---------- */
.services {
  background: var(--color-surface);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  transition: all var(--duration-slow) var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out);
}

.service-card:hover::before,
.service-card:focus-within::before {
  transform: scaleX(1);
}

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

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(200,146,63,0.12), rgba(59,130,152,0.08));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: 1.75rem;
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-abyss);
  margin-bottom: var(--space-3);
}

.service-card p {
  color: var(--color-text-soft);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.service-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-soft);
}

/* ---------- About ---------- */
.about {
  background: var(--color-surface-alt);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-top: var(--space-12);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-block {
  position: relative;
  background: var(--color-abyss);
  border-radius: var(--radius-xl);
  padding: var(--space-16);
  overflow: hidden;
}

.about-visual-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(200,146,63,0.1), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(59,130,152,0.08), transparent 60%);
}

.about-stat-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.about-stat {
  text-align: center;
}

.about-stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: -0.02em;
}

.about-stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-inverse);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
}

.about-text h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-abyss);
  margin-bottom: var(--space-6);
}

.about-text p {
  color: var(--color-text-soft);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.about-highlight-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(90,143,108,0.12);
  border-radius: 50%;
  color: var(--color-moss);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: 2px;
}

.about-highlight-text strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-abyss);
  margin-bottom: 2px;
}

.about-highlight-text span {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

/* ---------- Process ---------- */
.process {
  background: var(--color-abyss);
  color: var(--color-text-inverse);
}

.process .section-label {
  color: var(--color-gold);
}

.process .section-label::before {
  background: var(--color-gold);
}

.process .section-title {
  color: var(--color-cream);
}

.process .section-subtitle {
  color: var(--color-text-inverse);
  opacity: 0.65;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
  counter-reset: process-step;
}

.process-step {
  position: relative;
  padding: var(--space-8);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  counter-increment: process-step;
  transition: all var(--duration-normal) var(--ease-out);
}

.process-step:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(200,146,63,0.2);
}

.process-step-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
}

.process-step-number::before {
  content: '0' counter(process-step);
}

.process-step h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-cream);
}

.process-step p {
  color: var(--color-text-inverse);
  opacity: 0.6;
  line-height: var(--leading-relaxed);
}

/* ---------- Industries ---------- */
.industries {
  background: var(--color-surface);
}

.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.industry-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

.industry-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
}

.industry-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-5);
}

.industry-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-abyss);
  margin-bottom: var(--space-3);
}

.industry-card p {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: var(--leading-relaxed);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--color-midnight);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,146,63,0.06), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(59,130,152,0.06), transparent 50%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: var(--space-8);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  opacity: 0.6;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--color-surface-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.contact-info h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-abyss);
  margin-bottom: var(--space-4);
}

.contact-info > p {
  color: var(--color-text-soft);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200,146,63,0.1);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

.contact-detail strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-abyss);
  margin-bottom: 2px;
}

.contact-detail span {
  font-size: var(--text-base);
  color: var(--color-text-soft);
}

.contact-form {
  background: var(--color-surface);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-abyss);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: all var(--duration-fast) var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-gold);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(200,146,63,0.1);
}

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

.form-submit {
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}

.form-success.show {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.form-success h3 {
  font-size: var(--text-xl);
  color: var(--color-moss);
  margin-bottom: var(--space-2);
}

.form-success p {
  color: var(--color-text-soft);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--color-abyss);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,146,63,0.12), transparent 60%),
    radial-gradient(ellipse at 30% 100%, rgba(59,130,152,0.08), transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-cream);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--color-text-inverse);
  opacity: 0.7;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-midnight);
  color: var(--color-text-inverse);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-cream);
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  opacity: 0.55;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--color-text-inverse);
  opacity: 0.7;
  transition: all var(--duration-fast) var(--ease-out);
  font-size: var(--text-sm);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-abyss);
  opacity: 1;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  opacity: 0.55;
  transition: all var(--duration-fast);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  opacity: 0.4;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  opacity: 0.45;
  transition: opacity var(--duration-fast);
}

.footer-bottom-links a:hover {
  opacity: 0.8;
  color: var(--color-gold);
}

/* ---------- Page Header (Privacy / Terms) ---------- */
.page-header {
  background: var(--color-abyss);
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,146,63,0.08), transparent 60%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-cream);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: var(--text-lg);
  color: var(--color-text-inverse);
  opacity: 0.6;
}

/* ---------- Page Content ---------- */
.page-content {
  padding: var(--space-16) 0;
  background: var(--color-surface);
}

.page-content .container {
  max-width: var(--max-width-narrow);
}

.page-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-soft);
}

.page-body h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-abyss);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-abyss);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.page-body p {
  margin-bottom: var(--space-5);
}

.page-body ul,
.page-body ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.page-body ul {
  list-style: disc;
}

.page-body ol {
  list-style: decimal;
}

.page-body li {
  margin-bottom: var(--space-2);
}

.page-body a {
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:hover {
  color: var(--color-gold);
}

.page-body strong {
  color: var(--color-abyss);
}

.page-body address {
  font-style: normal;
  color: var(--color-text-soft);
  line-height: var(--leading-relaxed);
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-abyss);
  border-radius: 50%;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration-normal) var(--ease-out);
  font-size: 1.25rem;
  font-weight: 700;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-gold-bright);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(200,146,63,0.45);
}

/* ---------- Responsive: sm (640px+) ---------- */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Responsive: md (768px+) ---------- */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;
  }

  .section {
    padding: var(--space-32) 0;
  }

  .hero-content {
    padding: var(--space-32) 0;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Responsive: lg (1024px+) ---------- */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Responsive: mobile nav ---------- */
@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6,15,30,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: var(--text-xl);
    padding: var(--space-4);
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Print ---------- */
@media print {
  .nav,
  .scroll-top,
  .hero-bg,
  .cta,
  .footer-social,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: #fff;
    color: #000;
  }

  .hero-title,
  .hero-desc {
    color: #000;
  }
}
