/* Base Theme Variables */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.8);
  --shadow: 0 12px 40px rgba(15, 18, 28, 0.08);
  --text: #12131f;
  --muted: #5d6178;
  --accent: #306bff;
  --accent-soft: rgba(48, 107, 255, 0.12);
  --stroke: rgba(18, 19, 31, 0.08);
  --card-blur: blur(18px);
  --transition-speed: 180ms;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f111a;
  --surface: rgba(23, 26, 38, 0.7);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --text: #f4f5ff;
  --muted: #b4b7d0;
  --accent: #6c8bff;
  --accent-soft: rgba(108, 139, 255, 0.18);
  --stroke: rgba(244, 245, 255, 0.08);
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(48, 107, 255, 0.12), transparent 45%),
    radial-gradient(circle at bottom right, rgba(48, 107, 255, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 320ms ease, color var(--transition-speed) ease;
}

a {
  text-decoration: none;
  color: inherit;
}

.nowrap {
  white-space: nowrap;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: var(--card-blur);
  backdrop-filter: var(--card-blur);
  background: var(--surface);
  border-bottom: 1px solid var(--stroke);
}

.navbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: none;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  cursor: pointer;
  transition: border var(--transition-speed) ease, transform 220ms ease;
}

.toggle:hover {
  transform: translateY(-1px);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 120px;
  display: grid;
  gap: 64px;
}

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-text p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  transition: transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 14px 28px rgba(48, 107, 255, 0.28);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-2px);
}

.section {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 48px;
  -webkit-backdrop-filter: var(--card-blur);
  backdrop-filter: var(--card-blur);
  box-shadow: var(--shadow);
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}

.section p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 32px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(48, 107, 255, 0.08), transparent 65%);
  display: grid;
  gap: 18px;
  transition: transform 220ms ease, border 220ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.list {
  display: grid;
  gap: 12px;
  list-style: none;
  color: var(--muted);
}

.list li {
  padding-left: 20px;
  position: relative;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-card {
  display: grid;
  gap: 24px;
  text-align: center;
}

footer {
  margin-top: auto;
  padding: 36px 24px 64px;
  text-align: center;
  color: var(--muted);
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-image-wrapper {
  position: relative;
  display: grid;
  gap: 18px;
}

.hero-image-wrapper img {
  border: 1px solid var(--stroke);
  background: var(--bg);
}

.hero-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}

.quote {
  font-size: 1.1rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

/* Responsive */
@media (max-width: 720px) {
  header {
    position: relative;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  main {
    padding: 48px 20px 80px;
  }

  .section {
    padding: 36px 28px;
  }
}
