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

:root {
  --bg-color: #050505; /* Deep absolute dark */
  --surface-color: #0f1012;
  --surface-light: #16181b;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --accent: #38bdf8;
  --border-color: rgba(255, 255, 255, 0.08);
  --glow: rgba(56, 189, 248, 0.15);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html, body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}
img, video {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   TOP NAVIGATION BAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 35px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

/* CTAs */
.btn-primary {
  background: var(--text-main);
  color: #000;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.domain-sale-nav {
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}
.domain-sale-nav:hover { background: var(--accent); color: #000; }

/* ==========================================
   HERO SECTION (Split Layout)
   ========================================== */
.hero-section {
  padding: 160px 5% 100px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 30px;
  color: #fff;
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 90%;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
}
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  filter: contrast(1.1) brightness(0.9);
}
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  box-shadow: inset 0 0 100px rgba(5,5,5,0.8); /* Blend edges */
  pointer-events: none;
}

/* ==========================================
   STANDARD PAGE HEADER
   ========================================== */
.page-header {
  padding: 160px 5% 60px 5%;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-color) 0%, var(--bg-color) 100%);
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.page-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   GRID LAYOUTS (Features & APIs)
   ========================================== */
.section-container {
  padding: 80px 5%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 15px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* API List Styling (Clean standard layout) */
.api-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.api-list li {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 8px;
  transition: background 0.3s;
}
.api-list li:hover { background: var(--surface-light); }
.api-list a {
  font-family: var(--font-display);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4rem;
  display: block;
  margin-bottom: 10px;
}
.api-list a:hover { color: var(--accent); }
.api-list span {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* ==========================================
   FOOTER (Domain Banner)
   ========================================== */
.footer {
  padding: 80px 5%;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-color);
}
.footer-domain {
  max-width: 600px;
}
.footer-domain h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 10px;
}
.footer-domain p { color: var(--text-muted); }
.footer-meta { text-align: right; color: var(--text-muted); font-size: 0.9rem;}

.menu-toggle { display: none; }

/* ==========================================
   MOBILE & RESPONSIVE OPTIMIZATION
   ========================================== */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
    gap: 40px;
  }
  .hero-content p {
    margin: 0 auto 30px auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-image-wrapper {
    height: 400px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 15px 5%;
    flex-wrap: wrap;
    gap: 15px;
  }
  .nav-brand {
    font-size: 1.3rem;
  }
  .domain-sale-nav {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    order: 2;
  }
  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    padding-bottom: 15px;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .footer-meta {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .hero-image-wrapper {
    height: 250px;
  }
  .api-list a {
    font-size: 1.1rem;
  }
  .api-list li {
    padding: 15px;
  }
  .feature-card {
    padding: 15px;
  }
  .section-container {
    padding: 40px 5%;
  }
  .hero-section {
    padding-top: 120px;
  }
  .footer-domain h2 {
    font-size: 1.5rem;
  }
}
