:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #16181d;
  --text-muted: #565c66;
  --border: #e3e5ea;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-2: #22d3ee;
  --accent-gradient: linear-gradient(135deg, #0d9488, #22d3ee);
  --card-bg: #ffffff;
  --badge-live-bg: #e6f7ee;
  --badge-live-text: #1a7f4b;
  --badge-dev-bg: #fdf1e0;
  --badge-dev-text: #96631a;
  --shadow: 0 1px 3px rgba(16, 18, 22, 0.08), 0 1px 2px rgba(16, 18, 22, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #16181f;
    --text: #eef0f4;
    --text-muted: #9aa1ad;
    --border: #262a33;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-2: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #14b8a6, #38bdf8);
    --card-bg: #181b22;
    --badge-live-bg: #10331f;
    --badge-live-text: #4ade80;
    --badge-dev-bg: #332508;
    --badge-dev-text: #fbbf24;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

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

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

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 55%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
  background-size: 140% 140%;
  filter: blur(20px);
}

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

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tagline {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 12px 0 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    animation: driftBg 18s ease-in-out infinite;
  }

  .hero-logo {
    animation: float 3s ease-in-out infinite;
  }
}

@keyframes driftBg {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
  50% { background-position: 20% 15%, 80% 85%, 45% 55%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active { transform: translateY(1px) scale(0.99); }

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 2rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 40px;
}

.services-inner, .contact-inner { text-align: center; }
.services-inner .section-sub, .contact-inner .section-sub { margin-left: auto; margin-right: auto; }

/* Product cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 18%, transparent);
}

.card h3 {
  margin: 8px 0 2px;
  font-size: 1.25rem;
}

.card-platform {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-live { background: var(--badge-live-bg); color: var(--badge-live-text); }
.badge-dev { background: var(--badge-dev-bg); color: var(--badge-dev-text); }

/* Scroll reveal */
[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  [data-reveal].in-view {
    opacity: 1;
    transform: none;
  }
}

/* Contact form */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  margin-top: 20px;
  align-self: flex-start;
}

.contact-direct {
  margin-top: 28px;
  color: var(--text-muted);
}

.contact-direct a { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open { display: flex; }
}
