/* ==========================================================================
   NEXORA — High-Performance Edge Static Landing Page
   Deployed to Cloudflare Workers via Wrangler
   ========================================================================== */

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

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Chivo Mono', monospace;

  /* Color Palette matching reference */
  --bg-dark: #070d14;
  --bg-dark-alt: #0a111a;
  --bg-hero: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
             radial-gradient(circle at 15% 85%, rgba(6, 78, 59, 0.25) 0%, transparent 50%),
             linear-gradient(180deg, #060b11 0%, #0a131f 100%);
  --bg-light: #ffffff;
  --bg-light-soft: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;

  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-green-glow: rgba(16, 185, 129, 0.35);
  --accent-green-light: #ecfdf5;

  --text-white: #ffffff;
  --text-white-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.25);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 14px;
}

/* Edge Badge */
.edge-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.edge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-white-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-green {
  background-color: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-green:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--bg-hero);
  padding: 80px 0 120px 0;
  overflow: hidden;
}

/* Mountain silhouette background overlay */
.hero-backdrop-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 16, 0.9) 100%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 280" fill="%23061019" opacity="0.45"><path d="M0,280 L0,160 L140,210 L320,120 L480,190 L680,80 L880,180 L1080,100 L1260,170 L1440,90 L1440,280 Z"/></svg>');
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: cover;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--accent-green);
  display: inline-block;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-white-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-actions .btn {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.hero-metrics {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.metric-num span {
  color: var(--accent-green);
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-white-muted);
  font-weight: 500;
}

/* App Window Mockup */
.hero-visual {
  position: relative;
}

.mockup-window {
  background: rgba(12, 22, 33, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mockup-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.7), 0 0 45px rgba(16, 185, 129, 0.25);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.mockup-address {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-white-muted);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
}

.address-icon {
  width: 10px;
  height: 10px;
  color: var(--accent-green);
}

.window-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
}

.mockup-body {
  padding: 24px;
}

.mockup-card-main {
  background: rgba(18, 30, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 18px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.mockup-preview-box {
  width: 110px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.mockup-preview-box svg {
  width: 42px;
  height: 42px;
  color: #34d399;
}

.mockup-lines {
  flex: 1;
}

.mockup-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin-bottom: 10px;
}
.mockup-line.short { width: 55%; }
.mockup-line.medium { width: 75%; }
.mockup-line.accent { background: rgba(16, 185, 129, 0.4); width: 85%; }

.mockup-floating-card {
  position: absolute;
  right: 18px;
  bottom: 24px;
  background: rgba(15, 26, 39, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  animation: floatSlow 4s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-green-light);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-text h5 {
  font-size: 0.8125rem;
  color: var(--text-white);
  font-weight: 600;
}

.floating-text p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-green);
}

.mockup-code-block {
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.5;
}

.mockup-code-block .cf-kw { color: #38bdf8; }
.mockup-code-block .cf-str { color: #34d399; }
.mockup-code-block .cf-num { color: #f59e0b; }

/* ==========================================================================
   FEATURES SECTION (Clean Light Background)
   ========================================================================== */
.features-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 100px 0;
  position: relative;
  z-index: 3;
}

.features-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px auto;
}

.features-header .section-tag {
  color: var(--accent-green);
}

.features-header h2 {
  font-size: 2.75rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.4);
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--accent-green-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  background-color: var(--accent-green);
  color: #ffffff;
  transform: scale(1.08);
}

.feature-icon-box svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

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

/* ==========================================================================
   ABOUT US SECTION (Dark Background with Mountains)
   ========================================================================== */
.about-section {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 110px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content {
  max-width: 520px;
}

.about-content .section-tag {
  color: var(--accent-green);
}

.about-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-desc {
  font-size: 1.15rem;
  color: var(--text-white-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pillar-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-check svg {
  width: 14px;
  height: 14px;
}

.pillar-text h4 {
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 600;
  margin-bottom: 2px;
}

.pillar-text p {
  font-size: 0.9rem;
  color: var(--text-white-muted);
}

.about-media {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a;
}

.about-img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-image-wrapper:hover .about-img {
  transform: scale(1.03);
}

.about-badge-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(7, 13, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-flag {
  font-size: 1.5rem;
}

.badge-info h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-white);
}

.badge-info p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  background-color: var(--bg-light-soft);
  padding: 100px 0;
  color: var(--text-dark);
}

.pricing-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.pricing-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent-green);
  box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.15);
  transform: scale(1.04);
  z-index: 2;
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark-muted);
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-dark-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-card);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.9375rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ==========================================================================
   DEPLOYMENT BANNER / EDGE CALLOUT
   ========================================================================== */
.edge-callout {
  background: linear-gradient(135deg, #070d14 0%, #0d1926 100%);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 60px 0;
  color: var(--text-white);
}

.edge-callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.edge-callout-info h3 {
  font-size: 1.85rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.edge-callout-info p {
  color: var(--text-white-muted);
  font-size: 1.05rem;
}

.edge-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #04070c;
  color: var(--text-white-muted);
  padding: 70px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.9375rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--text-white-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.cf-powered {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--accent-green);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .pricing-card.popular {
    transform: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .edge-callout-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
