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

:root {
  --bg: #0d0d0d;
  --bg-glow: radial-gradient(ellipse at 20% 0%, #1a1a2e 0%, #0d0d0d 55%);
  --card: rgba(24, 24, 24, 0.8);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);
  --card-inset: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  --text: #ffffff;
  --text-muted: #a1a1a1;
  --text-dim: #666666;
  --accent: #7b8cde;
  --accent-end: #a5b4fc;
  --icon-bg: rgba(255, 255, 255, 0.04);
  --icon-bg-hover: rgba(255, 255, 255, 0.08);
  --icon-border-hover: rgba(255, 255, 255, 0.12);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --photo-gradient: linear-gradient(135deg, #2a2a3e, #1a1a2e);
  --toggle-bg: rgba(24, 24, 24, 0.8);
  --toggle-active: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --transition: 0.25s ease;
}

[data-theme="light"] {
  --bg: #f2f2f2;
  --bg-glow: radial-gradient(ellipse at 20% 0%, #e0e4f5 0%, #f2f2f2 55%);
  --card: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --card-inset: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  --text: #111111;
  --text-muted: #555555;
  --text-dim: #888888;
  --accent: #4f5fd6;
  --accent-end: #7b8cde;
  --icon-bg: rgba(0, 0, 0, 0.04);
  --icon-bg-hover: rgba(0, 0, 0, 0.08);
  --icon-border-hover: rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
  --photo-gradient: linear-gradient(135deg, #dde0f2, #c8cce6);
  --toggle-bg: rgba(255, 255, 255, 0.85);
  --toggle-active: rgba(0, 0, 0, 0.08);
}

[data-theme="warm"] {
  --bg: #1a1408;
  --bg-glow: radial-gradient(ellipse at 20% 0%, #2e2410 0%, #1a1408 55%);
  --card: rgba(34, 28, 16, 0.8);
  --border: rgba(245, 230, 200, 0.06);
  --border-hover: rgba(245, 230, 200, 0.12);
  --card-inset: 0 0 0 1px rgba(245, 230, 200, 0.03) inset;
  --text: #f5e6c8;
  --text-muted: #b8a080;
  --text-dim: #8a7560;
  --accent: #e8a84c;
  --accent-end: #f0c070;
  --icon-bg: rgba(245, 230, 200, 0.05);
  --icon-bg-hover: rgba(245, 230, 200, 0.1);
  --icon-border-hover: rgba(245, 230, 200, 0.12);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --photo-gradient: linear-gradient(135deg, #3a2e18, #2a2010);
  --toggle-bg: rgba(34, 28, 16, 0.8);
  --toggle-active: rgba(245, 230, 200, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-glow);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 4px;
  background: var(--toggle-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-btn:hover {
  color: var(--text);
}

.theme-btn.active {
  background: var(--toggle-active);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  width: 100%;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-inset);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-inset), var(--shadow-hover);
  border-color: var(--border-hover);
}

.card-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin-bottom: 8px;
  transition: color 0.4s ease;
}

.card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  transition: color 0.4s ease;
}

.card-hero {
  grid-column: span 2;
  padding: 32px;
}

.hero-content {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.hero-photo {
  flex-shrink: 0;
}

.photo-placeholder {
  width: 120px;
  height: 150px;
  border-radius: 16px;
  background: var(--photo-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  transition: background 0.4s ease, color 0.4s ease;
}

.photo-img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.hero-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 280px;
  margin-top: 4px;
}

.card-social {
  grid-column: span 1;
}

.social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.icon-btn:hover {
  background: var(--icon-bg-hover);
  color: var(--text);
  border-color: var(--icon-border-hover);
}

.card-proof {
  grid-column: span 1;
}

.proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proof-list li {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
  transition: color 0.4s ease;
}

.proof-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transition: background 0.4s ease;
}

.card-about {
  grid-column: span 2;
}

.card-cta {
  grid-column: span 3;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0;
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
}

.cta-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  body {
    padding: 20px 16px;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-hero,
  .card-proof,
  .card-about,
  .card-cta {
    grid-column: span 1;
  }

  .hero-content {
    flex-direction: column;
    gap: 20px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    max-width: 100%;
  }

  .photo-placeholder {
    width: 100px;
    height: 120px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .card {
    padding: 24px;
  }

  .theme-toggle {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }

  .cta-content h2 {
    font-size: 24px;
  }
}
