:root {
  --color-bg: #faf6ef;
  --color-bg-alt: #f2ece0;
  --color-text: #1a1d29;
  --color-text-muted: #5c6070;
  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-border: #e7e8ee;
  --max-width: 1120px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(20, 22, 40, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

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

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

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Notice bar */
.notice-bar {
  background: #f4d58d;
  color: #4a3a10;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  max-width: 100%;
  padding: 0 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 140px;
}

.logo {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 52px;
  max-width: min(55vw, 640px);
  flex-shrink: 1;
  min-width: 0;
}

.logo img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}

.main-nav {
  order: 1;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.nav-placeholder {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  opacity: 0.6;
  cursor: default;
}

.nav-toggle {
  display: none;
  order: 3;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Sections */
section {
  padding: 96px 0;
}

section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
  text-align: center;
}

.section-lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  text-align: center;
}

.about {
  background: var(--color-bg);
}

/* Services */
.services {
  background: var(--color-bg-alt);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(20, 22, 40, 0.1);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  text-align: center;
}

.contact-inner .btn {
  margin-top: 28px;
}

.download {
  text-align: center;
}

.download h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
}

.downloads {
  text-align: center;
}

.downloads .btn {
  margin-top: 28px;
}

.support {
  background: var(--color-bg-alt);
  text-align: center;
}

.support .btn {
  margin-top: 28px;
}

.btn-placeholder {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer-inner {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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