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

:root {
  --bg-start: #1C2334;
  --bg-end: #4F6EF7;
  --bg-app: #1a1d22;
  --bg-panel: #22262c;
  --bg-panel-elevated: #2a2f36;
  --bg-hover: #2e333b;
  --fg: #e3e7ee;
  --fg-secondary: #aeb6c3;
  --fg-muted: #8891a1;
  --accent: #4f6ef7;
  --accent-hover: #5d7af8;
  --accent-light: #7aa2f7;
  --border: #343a43;
  --border-subtle: #2c3139;
  --card-bg: #f3efe6;
  --card-fg: #23211d;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-round: 9999px;

  --nav-height: 72px;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(79, 110, 247, 0.15);
  color: var(--accent-light);
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--fg-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  border-radius: var(--radius-md);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(79, 110, 247, 0.08);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: all 0.3s ease;
}

.nav-scrolled {
  background: rgba(26, 29, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}

.nav-logo-img { border-radius: var(--radius-sm); }

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

.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.btn):hover { color: var(--fg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) { opacity: 0; }

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--bg-start) 0%, #2D4374 56%, var(--bg-end) 100%);
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(79, 110, 247, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 30%, rgba(122, 162, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(79, 110, 247, 0.1) 0%, transparent 60%);
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 60%, black 20%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 60%, black 20%, transparent 60%);
}

.hero-content {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 40px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #7AA2F7, #B4C8FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.65);
  max-width: 540px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
  margin-bottom: 80px;
}

.hero-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta .btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(79, 110, 247, 0.12);
}

.hero-mockup-wrapper {
  position: relative;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
  max-width: 960px;
  margin: 0 auto;
}

.hero-mockup {
  position: relative;
  background: #1a1d22;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  aspect-ratio: 1920 / 1025;
}

.mockup-window-dots {
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

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

.mockup-dot.red { background: #FF5F56; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #27C93F; }

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.is-active {
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  width: 28px;
  border-radius: 5px;
}

#features { background: var(--bg-app); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(79, 110, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-secondary);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.feature-tag {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-round);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
}

#how-it-works { background: var(--bg-panel); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 50%, var(--border) 100%);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 36px;
  font-weight: 800;
  color: var(--fg-muted);
  transition: all 0.3s;
}

.step.active .step-number {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(79, 110, 247, 0.08);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.12);
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  color: var(--fg-secondary);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.7;
}

#skills { background: var(--bg-app); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(79, 110, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.skill-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-info p {
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

#tech { background: var(--bg-panel); }

.tech-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.arch-layer {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.arch-layer:hover { border-color: var(--border); }

.arch-layer-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.arch-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-tag {
  padding: 4px 12px;
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.15);
  border-radius: var(--radius-round);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
}

.arch-layer.frontend { border-left: 3px solid #7AA2F7; }
.arch-layer.backend { border-left: 3px solid #4F6EF7; }
.arch-layer.desktop { border-left: 3px solid #10b981; }

.arch-connector {
  text-align: center;
  color: var(--fg-muted);
  font-size: 13px;
  padding: 4px 0;
  font-family: var(--font-mono);
}

.tech-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tech-badge-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-secondary);
  margin-bottom: 12px;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  padding: 8px 18px;
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.tech-badge:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(79, 110, 247, 0.06);
}

#download {
  background: linear-gradient(160deg, var(--bg-start) 0%, #2D4374 56%, var(--bg-end) 100%);
  text-align: center;
  overflow: hidden;
}

#download .container { position: relative; z-index: 1; }

#download .section-subtitle { color: rgba(255, 255, 255, 0.65); }

.download-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

.download-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.download-alt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.download-alt:hover {
  color: var(--accent-light);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.download-btn-icon { font-size: 28px; flex-shrink: 0; }

.download-btn-text small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

.download-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.footer {
  background: var(--bg-app);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.footer-brand img { border-radius: 6px; }

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }

.footer-copyright {
  font-size: 13px;
  color: var(--fg-muted);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-showcase { grid-template-columns: 1fr; gap: 32px; }
  .hero-mockup { border-radius: var(--radius-lg); }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26, 29, 34, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps::before { display: none; }

  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }

  .hero-mockup {
    border-radius: var(--radius-md);
  }

  .footer-inner { flex-direction: column; text-align: center; }
}
