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

:root {
  /* Ultra Premium Dark Theme */
  --bg-main: #0B0E14; /* Deepest blue/slate */
  --bg-surface: #121822; /* Elevated surface */
  --bg-surface-glass: rgba(18, 24, 34, 0.65);
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(245, 158, 11, 0.15);
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand Accents */
  --brand-primary: #f59e0b; /* Amber */
  --brand-primary-hover: #fbbf24;
  --brand-glow: rgba(245, 158, 11, 0.35);
  --brand-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  
  /* Layout */
  --max-width: 1200px;
  --border-radius: 16px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.03), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.03), transparent 25%);
  background-attachment: fixed;
}

/* ==========================================================================
   GLOBAL NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  height: 28px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

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

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

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

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

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

.nav-link-login {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link-login:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #000;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 10rem 2rem 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1000px;
  background: radial-gradient(circle at center 0%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 5rem;
}

/* Stunning Glassmorphic Dashboard Showcase */
.hero-dashboard-showcase {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-dashboard-showcase::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  border-radius: 20px;
  z-index: -1;
}

.hero-dashboard-showcase img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.8), 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 100px rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   FEATURE DEEP DIVES (App-Specific)
   ========================================================================== */
.section {
  padding: 8rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.feature-deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

.feature-deep-dive:nth-child(even) {
  direction: rtl;
}
.feature-deep-dive:nth-child(even) > * {
  direction: ltr;
}

.f-content h3 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.f-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.f-list {
  list-style: none;
}

.f-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.05rem;
}

.f-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 800;
}

/* High-End App Image Frame */
.f-image-frame {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  padding: 1rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.f-image-frame::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  z-index: -1;
}

.f-image-frame img {
  width: 100%;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(255,255,255,0.02);
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.grid-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 3rem 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.gc-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: var(--brand-primary);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.grid-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.grid-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #06080b;
  border-top: 1px solid var(--border-light);
  padding: 5rem 2rem 3rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 36px;
  margin-bottom: 1.5rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-column h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* ==========================================================================
   IMAGE FRAMING & MOCKUPS
   ========================================================================== */
.browser-mockup {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(var(--brand-primary-rgb), 0.1);
  position: relative;
  backdrop-filter: blur(20px);
}

.browser-mockup::before {
  content: '';
  display: block;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-light);
  /* Mac-like dots */
  background-image: 
    radial-gradient(circle, #ff5f56 6px, transparent 6.5px),
    radial-gradient(circle, #ffbd2e 6px, transparent 6.5px),
    radial-gradient(circle, #27c93f 6px, transparent 6.5px);
  background-position: 16px 12px, 36px 12px, 56px 12px;
  background-size: 12px 12px;
  background-repeat: no-repeat;
}

.browser-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Float Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* Feature Tabs Container */
.feature-tabs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.feature-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-tab {
  padding: 1.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.feature-tab:hover {
  background: rgba(255,255,255,0.02);
}

.feature-tab.active {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-tab h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-tab p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.feature-tab-image {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  grid-area: 1 / 1;
  width: 100%;
  visibility: hidden;
  transform: scale(0.98);
}

.feature-tab-image.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .feature-deep-dive {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .feature-deep-dive:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .hero { padding: 8rem 1.5rem 5rem; }
  .hero h1 { font-size: 3.5rem; }
  .hero p { font-size: 1.15rem; }
  .hero-cta { flex-direction: column; }
  
  .nav-links { display: none; }
  
  .grid-3 { grid-template-columns: 1fr; }
  
  .footer-container { grid-template-columns: 1fr; gap: 4rem; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
