/* ==========================================================================
   Relapsed Studio LLC — Design System & Stylesheet
   Aesthetic Philosophy: Minimalist Studio Aesthetic
   Typography: Dream Orphans (Display) & Outfit (Body / Navigation)
   ========================================================================== */

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

@font-face {
  font-family: 'Dream Orphans';
  src: url('../assets/fonts/dream-orphans.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Color Palette: Stripe-inspired Slate, Electric Indigo & Studio Blue */
  --bg-black: #08090d;
  --bg-surface: #0f131c;
  --bg-surface-elevated: #151b27;
  --bg-card: rgba(21, 27, 39, 0.72);
  --bg-glass: rgba(15, 19, 28, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(59, 130, 246, 0.35);

  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;       /* Muted slate gray */
  --text-subtle: #64748b;

  --accent-blue: #3b82f6;      /* Studio Electric Blue */
  --accent-blue-light: #60a5fa;
  --accent-blue-glow: rgba(59, 130, 246, 0.14);
  --accent-indigo: #6366f1;    /* Vibrant Indigo */
  --accent-cyan: #06b6d4;      /* Pure Cyan */

  /* Radius Constraint: Exactly 16px on all cards, buttons, frames */
  --radius: 16px;
  --radius-pill: 9999px;

  /* Elevation: Ultra-soft, low-opacity drop shadows */
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.55), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 28px 50px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px rgba(59, 130, 246, 0.18);
  --shadow-mockup: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 45px -10px rgba(59, 130, 246, 0.15);
  --shadow-btn: 0 8px 20px -4px rgba(59, 130, 246, 0.38);

  --font-display: 'Dream Orphans', 'Outfit', sans-serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  background-color: var(--bg-black);
  background-image: 
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 65% 45% at 90% 65%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ==========================================================================
   Layout Containers & Macro-Whitespace
   ========================================================================== */

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

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Generous macro-whitespace (minimum 96px, standard 104px) */
.section-macro {
  padding-top: 104px;
  padding-bottom: 104px;
}

.section-hero {
  padding-top: 72px;
  padding-bottom: 104px;
}

/* ==========================================================================
   Navigation & Sticky Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-light);
  font-size: 1.1rem;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-sans);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-white);
}

/* Mobile Hamburger Toggle */
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hamburger-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
}

.hamburger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 9, 13, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  padding: 36px 24px;
  gap: 20px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeIn 0.2s ease;
}

.mobile-nav-overlay.is-active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  font-family: var(--font-sans);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.15s ease;
}

.mobile-nav-link:hover {
  color: var(--accent-blue-light);
}

/* ==========================================================================
   Buttons (Always 16px Radius)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(59, 130, 246, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  color: var(--accent-blue-light);
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2.5vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 100%;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text-white);
  overflow-wrap: break-word;
}

.hero-h1-gradient {
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Floating Product Mockup Placeholder */
.mockup-wrapper {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
}

.floating-mockup-card {
  background: linear-gradient(180deg, rgba(21, 27, 39, 0.88) 0%, rgba(15, 19, 28, 0.96) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-mockup);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.floating-mockup-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 70px -15px rgba(0, 0, 0, 0.8), 0 0 50px -8px rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.3);
}

.mockup-inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.status-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.mockup-content-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 12px;
}

.mockup-emblem-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
}

.mockup-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.mockup-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   3-Column Features Section
   ========================================================================== */

.section-header-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-description {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue-light);
  margin-bottom: 24px;
}

.feature-icon-badge svg {
  width: 24px;
  height: 24px;
}

.feature-h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-white);
  margin-bottom: 12px;
}

.feature-p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.015em;
}

/* ==========================================================================
   Inquiries / Ideas Section (Always 16px Radius)
   ========================================================================== */

.inquiry-card {
  background: linear-gradient(180deg, rgba(21, 27, 39, 0.8) 0%, rgba(15, 19, 28, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 56px 40px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ==========================================================================
   Simple, Dark-Themed Footer
   ========================================================================== */

.footer {
  margin-top: auto;
  background: var(--bg-black);
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
}

.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-white);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .container {
    padding: 0 20px;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    line-height: 1.05;
  }

  .section-macro {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-hero {
    padding-top: 48px;
    padding-bottom: 80px;
  }

  .floating-mockup-card {
    padding: 28px 20px;
  }

  .mockup-inner-header {
    margin-bottom: 24px;
  }

  .inquiry-card {
    padding: 36px 20px;
  }

  .footer-simple {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
