:root {
  --bg-primary: #181828;
  --bg-secondary: #212133;
  --bg-card: #212133;
  --bg-card-hover: #2a2a44;
  --text-primary: #e8eaed;
  --text-secondary: #a0a0b8;
  --text-muted: #a0a0b8;
  --accent: #6e28bd;
  --accent-hover: #8236e2;
  --accent-glow: rgba(110, 40, 189, 0.3);
  --border: #2d2d3d;
  --success: #69f0ae;
}

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

html {
  scroll-behavior: smooth;
}

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

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

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

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

.header-right {
  display: flex;
  gap: .5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.lang-toggle {
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  min-width: 2.5rem;
  justify-content: center;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  padding: 12rem 0 8rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 50rem;
  height: 50rem;
  background: var(--accent-glow);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 30rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-preview {
  position: relative;
  z-index: 1;
}

.preview-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #eab308; }
.preview-dot.green { background: #22c55e; }

.preview-content {
  background-color: rgb(24, 24, 40);
  padding: 1.5rem;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.preview-time {
  font-size: 3rem;
  font-weight: 600;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
  letter-spacing: -0.02em;
}

.preview-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: -1rem;
}

.preview-search {
  width: 100%;
  max-width: 25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 15rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 25rem;
}

.preview-item {
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Features */
.features {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 37.5rem;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 1.5rem;
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.feature-icon svg,
.tech-icon svg,
.lang-flag svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

.lang-flag svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--text-secondary);
}

.preview-search svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Philosophy */
.philosophy {
  padding: 6rem 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.philosophy-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  transition: all 0.25s ease;
}

.philosophy-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.philosophy-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.philosophy-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.philosophy-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Tech Stack */
.tech {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.tech-item {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}

.tech-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.feature-icon,
.tech-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(110, 40, 189, 0.1);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.tech-icon {
  margin: auto;
  margin-bottom: 0.75rem;
  background: transparent;
}

.tech-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
}

.tech-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Languages */
.languages {
  padding: 6rem 0;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-flag {
  display: flex;
  align-items: center;
}

.preview-item {
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA */
.cta {
  padding: 6rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 31.25rem;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  gap: .5rem;
}

.footer-copy svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-author-link {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-preview {
    order: 0;
    max-width: 37.5rem;
    margin: 0 auto;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid,
  .languages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

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

  .features-grid,
  .philosophy-grid,
  .tech-grid,
  .languages-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
