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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --accent: #FD6262;
  --accent2: #62C1FC;
  --text: #f0f0ee;
  --muted: #6b6b6b;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 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");
  background-size: 200px 200px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled {
  border-color: var(--border);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.85 !important; color: var(--bg) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 90%);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,98,98,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-title .line2 {
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,240,238,0.3);
}
.hero-title .accent-word { color: var(--accent); }

.hero-sub {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(253,98,98,0.35); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--muted); }

.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* ── STATS BAR ── */
.stats {
  position: relative; z-index: 2;
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text);
  line-height: 1;
}
/* Add this: */
.stat-num.symbol {
  font-family: var(--font-body);
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── SECTIONS ── */
section {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
}

/* ── SITES GRID ── */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.site-card {
  background: var(--surface);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.2s;
}
.site-card:hover { background: #161616; }
.site-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}
.site-card:hover::before { width: 100%; }

.card-number {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.site-card:hover .card-number { color: #222; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.card-arrow {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ── APPS SECTION ── */
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1.5px solid var(--border);
}
.app-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  padding: 1.5rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.app-item:hover { background: #161616; }
.app-info { display: flex; align-items: center; gap: 1.5rem; }
.app-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}
.app-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.app-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.app-link-icon {
  color: var(--muted);
  font-size: 1.2rem;
  transition: color 0.2s, transform 0.2s;
}
.app-item:hover .app-link-icon { color: var(--accent); transform: translateX(4px); }

/* ── ABOUT STRIP ── */
.about-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 100%;
}
.about-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  white-space: nowrap;
  flex-shrink: 0;
}
.about-big span { color: var(--accent); }
.about-text {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
}

/* ── CONTACT SECTION ── */
.contact-section {
  padding: 6rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  padding-top: 0.5rem;
}
.contact-intro p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  margin-top: 1rem;
  max-width: 340px;
}

/* Netlify form styling */
.netlify-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(253,98,98,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #333;
}

.form-submit {
  margin-top: 0.5rem;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.form-success .success-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── FOOTER ── */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.footer-name span { color: var(--accent); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-cta { display: none; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .stats { gap: 1.5rem; flex-wrap: wrap; }
  section { padding: 4rem 1.5rem; }
  .contact-section { padding: 4rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-strip { flex-direction: column; gap: 1.5rem; padding: 3rem 1.5rem; }
  .about-big { white-space: normal; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}