:root {
  --primary: #601700;
  --accent-1: #A76D60;
  --accent-2: #E0D0C1;
  --secondary: #00A676;
  --bg: #fff;
  --surface: #fafafa;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: rgba(0,0,0,0.08);
  --shadow: rgba(0,0,0,0.1);
  --glass-bg: rgba(255,255,255,0.1);
  --glass-border: rgba(255,255,255,0.18);
}

[theme="dark"] {
  --primary: #E0D0C1;
  --accent-1: #A76D60;
  --accent-2: #601700;
  --secondary: #00A676;
  --bg: #0a0a0a;
  --surface: #151515;
  --text: #f5f5f5;
  --text-muted: #999;
  --border: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.5);
  --glass-bg: rgba(0,0,0,0.4);
  --glass-border: rgba(255,255,255,0.1);
}

[theme="apple"] {
  --primary: #601700;
  --accent-1: #A76D60;
  --accent-2: #E0D0C1;
  --secondary: #00A676;
  --bg: #f5f5f7;
  --surface: #fff;
  --text: #1d1d1f;
  --text-muted: #86868b;
  --border: rgba(0,0,0,0.06);
  --shadow: rgba(0,0,0,0.08);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Proxima Nova', 'Poppins', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.logo {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover { color: var(--primary); }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 20s infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, 50px); }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--shadow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

section {
  padding: 6rem 5%;
  position: relative;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

[theme="apple"] .bento-card {
  backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow);
}

.bento-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.bento-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.bento-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bento-card ul {
  list-style: none;
}

.bento-card li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bento-card li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
  margin-right: 0.75rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 3rem auto;
}

.price-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.4s;
  position: relative;
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 10px 40px var(--shadow);
}

.price-card.popular::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
}

.price-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.price-card .price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
}

.price-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card ul {
  list-style: none;
  margin: 2rem 0;
}

.price-card li {
  padding: 0.7rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card li::before {
  content: '•';
  color: var(--secondary);
  font-weight: bold;
  margin-right: 0.75rem;
}

.category-section {
  margin: 4rem 0;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary);
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: left;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 0.4rem 0;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  header { padding: 1rem 5%; }
  nav ul { gap: 1rem; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 1rem; display: none; }
  nav.active ul { display: flex; }
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: 2.5rem; }
  .bento-grid, .pricing-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 5%; }
}

.parallax-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.1;
  z-index: -1;
}

.texture-overlay {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      var(--border) 2px,
      var(--border) 4px
    );
  opacity: 0.03;
  pointer-events: none;
}