:root {
  --bg-color: #F7F8FA;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --primary-color: #111111;
  --nav-bg: rgba(247, 248, 250, 0.8);
  --border-color: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  --mockup-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f1115;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --primary-color: #ffffff;
    --nav-bg: rgba(15, 17, 21, 0.8);
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    --mockup-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background gradient accent */
.bg-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 50% 30%, rgba(200, 200, 255, 0.08) 0%, transparent 70%);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.logo picture, .logo picture img {
  display: flex;
  border: none;
  outline: none;
}

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

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

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

.btn-primary {
  background: var(--primary-color);
  color: var(--bg-color) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 60px;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

/* 3D Browser Mockup */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.browser-mockup {
  width: 400px;
  height: 550px;
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: var(--mockup-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.browser-mockup:hover {
  transform: translateY(-10px);
  /* Remove 3D rotation to fix iframe click hit-box offset */
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
}

.browser-header {
  height: 24px;
  background: var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.browser-content {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
}

.browser-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Features */
.features {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  padding: 40px;
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(17, 17, 17, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

@media (prefers-color-scheme: dark) {
  .feature-icon {
    background: rgba(255, 255, 255, 0.1);
  }
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Footer / Contact */
footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 40px 40px;
  text-align: center;
}

.contact-section {
  max-width: 600px;
  margin: 0 auto 60px;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 4px;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Page Layout for Privacy Policy */
.page-container {
  max-width: 800px;
  margin: 140px auto 100px;
  padding: 0 40px;
}

.page-container h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.page-container h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}

.page-container p,
.page-container li {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.page-container ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    margin: 0 auto 40px;
  }

  .browser-mockup {
    transform: none;
  }

  .browser-mockup:hover {
    transform: translateY(-10px);
  }

  .nav-links {
    display: none;
  }
}