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

:root {
  /* Color Palette - Forest-Night Outdoor Theme */
  --bg-dark: #080d0a;
  --bg-card: rgba(16, 26, 21, 0.65);
  --bg-card-hover: rgba(22, 38, 30, 0.85);
  --border-color: rgba(34, 54, 44, 0.5);
  --border-hover: rgba(52, 84, 68, 0.8);
  
  --text-primary: #f2f7f4;
  --text-secondary: #9cb5a9;
  --text-muted: #627c70;
  
  --accent-mint: #10b981;
  --accent-mint-hover: #34d399;
  --accent-mint-glow: rgba(16, 185, 129, 0.25);
  
  --accent-amber: #f59e0b;
  --accent-amber-hover: #fbbf24;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow-mint: 0 0 25px var(--accent-mint-glow);
  --shadow-glow-amber: 0 0 25px var(--accent-amber-glow);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--accent-mint);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-mint-hover);
}

/* Utility Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-mint-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-amber);
  margin-bottom: 12px;
  display: block;
}

.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 13, 10, 0.75);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid var(--accent-mint);
  box-shadow: var(--shadow-glow-mint);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-mint);
  transition: width var(--transition-fast);
}

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

.nav-link:hover::after {
  width: 100%;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

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

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow-mint);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0 60px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-lead {
  font-size: 1.25rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-mint) 0%, #059669 100%);
  color: #030712;
  box-shadow: var(--shadow-sm), var(--shadow-glow-mint);
}

.btn-primary:hover {
  color: #030712;
  background: linear-gradient(135deg, var(--accent-mint-hover) 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
  background: rgba(16, 26, 21, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(22, 38, 30, 0.9);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Mockup Layout */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-container {
  width: 290px;
  height: 590px;
  border-radius: 40px;
  border: 10px solid #202d25;
  background: #000;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-normal);
}

.phone-notch {
  width: 120px;
  height: 25px;
  background: #202d25;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.glow-ring {
  position: absolute;
  width: 320px;
  height: 620px;
  border-radius: 46px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  z-index: -1;
  filter: blur(8px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mint);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card:hover .feature-icon {
  background: var(--accent-mint);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow-mint);
  transform: rotate(5deg) scale(1.05);
  transition: all var(--transition-fast);
}

/* Sharing Steps Grid */
.sharing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 28px 24px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-mint) 0%, var(--accent-mint-hover) 100%);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow-mint);
  transition: all var(--transition-normal);
}

.step-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.step-card:hover .step-num {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-amber-hover) 100%);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow-amber);
}

/* Showcase Section */
.showcase-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-tab {
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.showcase-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

.showcase-tab.active {
  background: var(--bg-card-hover);
  border-color: var(--accent-mint);
  box-shadow: var(--shadow-glow-mint);
}

.showcase-tab h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.showcase-tab.active h3 {
  color: var(--accent-mint-hover);
}

.showcase-tab p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-muted);
}

.showcase-tab.active p {
  color: var(--text-secondary);
}

.showcase-display {
  display: flex;
  justify-content: center;
}

.mockup-showcase-phone {
  width: 320px;
  height: 650px;
  border-radius: 44px;
  border: 12px solid #202d25;
  background: #000;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(16, 185, 129, 0.1);
}

.mockup-showcase-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mockup-showcase-screen.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.4s ease forwards;
}

/* Tech Specs Section */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.specs-table th, .specs-table td {
  padding: 18px 24px;
  text-align: left;
}

.specs-table th {
  background: rgba(16, 26, 21, 0.8);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

.specs-table tr {
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  transition: background var(--transition-fast);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table tr:hover {
  background: rgba(16, 26, 21, 0.4);
}

.spec-category {
  font-weight: 600;
  color: var(--accent-mint);
  width: 250px;
}

.spec-details {
  color: var(--text-secondary);
}

.badge-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-mint);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Privacy Policy Layout */
.privacy-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.privacy-container h2 {
  margin-top: 40px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.privacy-container ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.privacy-container li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 600;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  background: #050806;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .btn-group {
    justify-content: center;
  }
  
  .showcase-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .showcase-tabs {
    order: 2;
  }
  
  .showcase-display {
    order: 1;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* simple hidden layout for mobile */
  }
  
  .section {
    padding: 60px 0;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .specs-table th, .specs-table td {
    padding: 12px 16px;
  }
  
  .spec-category {
    width: auto;
  }
  
  .privacy-container {
    padding: 24px;
  }
}

/* Unit Test Status Badge */
.test-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-mint-hover);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.05em;
  margin-left: 12px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.test-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-mint);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 4px var(--accent-mint);
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-mint-hover);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 4px var(--accent-mint);
  }
}
