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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.15);
  --accent-secondary: #00d4aa;
  --text-primary: #f0ede8;
  --text-secondary: #9a96a6;
  --text-muted: #5c5870;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 107, 53, 0.3);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a0f20 30%, #0f1a20 70%, #0a0a0f 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b35, #ff3e6c);
  --gradient-green: linear-gradient(135deg, #00d4aa, #00a3ff);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(255, 107, 53, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1140px;
}

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

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* === NOISE TEXTURE OVERLAY === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* === AMBIENT BACKGROUND GLOW === */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 107, 53, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, 3%) rotate(3deg); }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === SELECTION === */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* === HEADER / HERO === */
header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  animation: heroPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

/* Grid pattern in hero */
header h1::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

header h1 {
  position: relative;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

header h1 .brand-highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header > p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 650px;
  font-weight: 300;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Scroll indicator */
header > p::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 3rem auto 0;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(12px); opacity: 1; }
}

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

/* === MAIN === */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* === SECTIONS === */
section {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: sectionReveal 0.8s ease-out both;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

section:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  transform: translateY(-2px);
}

section:hover::before {
  opacity: 1;
}

/* Staggered section animations */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }

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

/* === HEADINGS === */
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  position: relative;
  padding-left: 1.2rem;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.2em;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Alternate accent for even sections */
section:nth-child(even) h2::before {
  background: var(--gradient-green);
}

/* === PARAGRAPHS === */
p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 350;
  line-height: 1.8;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* === LISTS === */
ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

li {
  position: relative;
  padding: 0.85rem 1.2rem 0.85rem 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.97rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

li::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: all 0.3s ease;
}

section:nth-child(even) li::before {
  background: var(--accent-secondary);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.3);
}

li:hover {
  background: rgba(255, 107, 53, 0.04);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

li strong {
  color: var(--text-primary);
  font-family: 'Space Mono', monospace;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* Feature list - 2 columns on desktop */
section:nth-child(2) ul {
  grid-template-columns: 1fr 1fr;
}

/* === LINKS === */
a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

a:hover {
  color: #ff8f66;
}

a:hover::after {
  width: 100%;
}

/* === CONTACT SECTION (last section) === */
section:last-child {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 53, 0.03) 100%);
  border-color: rgba(255, 107, 53, 0.15);
}

section:last-child p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.97rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

section:last-child p:last-child {
  border-bottom: none;
}

/* === FOOTER === */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gradient-accent);
  margin: 0 auto 2rem;
  border-radius: 1px;
}

footer p {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

footer p:first-of-type {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* === RESPONSIVE: TABLET === */
@media (max-width: 1024px) {
  header {
    min-height: 85vh;
    padding: 5rem 2rem 3rem;
  }

  main {
    padding: 1.5rem 1.25rem 3rem;
  }

  section {
    padding: clamp(1.8rem, 3vw, 2.5rem);
  }

  section:nth-child(2) ul {
    grid-template-columns: 1fr 1fr;
  }
}

/* === RESPONSIVE: MOBILE === */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  header {
    min-height: 80vh;
    padding: 4rem 1.5rem 2.5rem;
  }

  header h1 {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
  }

  header > p {
    font-size: 1rem;
    line-height: 1.7;
  }

  header > p::after {
    height: 40px;
    margin-top: 2rem;
  }

  main {
    padding: 1rem 1rem 2rem;
  }

  section {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
  }

  h2 {
    font-size: 1.3rem;
    padding-left: 1rem;
  }

  h2::before {
    width: 3px;
  }

  section:nth-child(2) ul {
    grid-template-columns: 1fr;
  }

  li {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.92rem;
  }

  li::before {
    left: 0.9rem;
    width: 6px;
    height: 6px;
  }

  footer {
    padding: 2rem 1rem 3rem;
  }
}

/* === RESPONSIVE: LARGE DESKTOP === */
@media (min-width: 1400px) {
  :root {
    --max-width: 1240px;
  }

  header h1 {
    font-size: 5.2rem;
  }

  section {
    padding: 3.5rem 4rem;
  }
}

/* === LANGUAGE SWITCHER === */
.lang-switch {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  gap: 2px;
  background: rgba(22, 22, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--gradient-accent);
  color: var(--bg-primary);
}

/* === PRINT === */
@media print {
  body {
    background: white;
    color: black;
  }

  header {
    min-height: auto;
    background: none;
    padding: 2rem;
  }

  section {
    background: none;
    border: 1px solid #ddd;
    box-shadow: none;
    page-break-inside: avoid;
  }

  footer::before {
    display: none;
  }
}

/* === 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;
  }
}