/* ============================
   AEROM OÜ — Website Design System
   Inspired by dfsec.com clean aesthetic
   ============================ */

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

/* ---------- Root Variables ---------- */
:root {
  --navy: #0a1628;
  --navy-mid: #0f1d35;
  --navy-light: #162544;
  --accent: #00c8ff;
  --accent-dim: rgba(0, 200, 255, 0.15);
  --accent-glow: rgba(0, 200, 255, 0.25);
  --white: #ffffff;
  --off-white: #f0f4f8;
  --text-primary: #0a1628;
  --text-secondary: #4a5e78;
  --text-light: #8899ad;
  --text-on-dark: #c8d6e5;
  --card-bg: #ffffff;
  --card-border: rgba(10, 22, 40, 0.06);
  --section-alt: #f7f9fc;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.1);
  --shadow-glow: 0 8px 40px rgba(0, 200, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text-primary);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: #b0bec5; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #78909c; }

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

/* ----- NAVIGATION ----- */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-main.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

.nav-main .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #0066ff);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-contact-btn {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--navy);
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  transition: all 0.3s ease !important;
}

.nav-contact-btn:hover {
  background: var(--accent) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

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

/* Mobile nav */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--card-border);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.hero-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.3), transparent 70%);
  top: -10%;
  right: -5%;
}

.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.2), transparent 70%);
  bottom: 10%;
  left: -5%;
}

.hero-bg .grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(10, 22, 40, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 40, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 999px;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 2rem;
}

.btn-primary:hover {
  background: #162544;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 0.85rem 2rem;
  border: 1.5px solid rgba(10, 22, 40, 0.15);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy);
  padding: 0.85rem 2rem;
  font-weight: 700;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 6rem 2rem;
}

.section-alt {
  background: var(--section-alt);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-dark .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-dark .section-desc {
  color: var(--text-on-dark);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 200, 255, 0.2);
}

.card-dark {
  background: var(--navy-light);
  border-color: rgba(255, 255, 255, 0.06);
}

.card-dark:hover {
  border-color: rgba(0, 200, 255, 0.3);
  box-shadow: 0 8px 40px rgba(0, 200, 255, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--accent-dim);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.card-dark h3 {
  color: var(--white);
}

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

.card-dark p {
  color: var(--text-on-dark);
}

/* ---------- STATS ---------- */
.stat {
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section-dark .stat-value {
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.section-dark .stat-label {
  color: var(--text-on-dark);
}

/* ---------- GRID LAYOUTS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* ---------- TERMINAL BLOCK ---------- */
.terminal {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-on-dark);
  overflow: hidden;
  position: relative;
}

.terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal .dots {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.terminal .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal .dots span:nth-child(1) { background: #ff5f56; }
.terminal .dots span:nth-child(2) { background: #ffbd2e; }
.terminal .dots span:nth-child(3) { background: #27ca40; }

.terminal .t-cyan { color: var(--accent); }
.terminal .t-green { color: #27ca40; }
.terminal .t-amber { color: #ffbd2e; }
.terminal .t-dim { color: #4a5e78; }
.terminal .t-white { color: #e2e8f0; }

/* ---------- FEATURE LIST ---------- */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list li .check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), #0066ff);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ---------- FORM ---------- */
.form-field {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--section-alt);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--navy);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.form-input::placeholder {
  color: var(--text-light);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- GRADIENT TEXT ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #0066ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- MISC ---------- */
.font-mono { font-family: var(--font-mono); }
.text-balance { text-wrap: balance; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .hero-desc { font-size: 1rem; }
  .section-title { font-size: 1.75rem; }
  .stat-value { font-size: 2.25rem; }
  .card { padding: 1.75rem; }
}
