/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #0d0d0d;
  --color-bg-alt: #111111;
  --color-surface: #1a1a1a;
  --color-border: #2a2a2a;
  --color-text: #e8e8e8;
  --color-text-muted: #888;
  --color-accent: #7c5cfc;
  --color-accent-hover: #9b7dff;
  --color-white: #ffffff;
  --font-main: 'Outfit', 'Open Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --nav-height: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 36px; width: auto; }

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

.nav-links a {
  color: var(--color-text-muted);
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); }

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

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-accent-hover);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, #7c5cfc, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

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

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  max-width: 960px;
  margin: 0 auto;
}
.hero-image img { width: 100%; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.hero-stats img { height: 20px; }

/* ===== Features grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(124, 92, 252, 0.4);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px; height: 44px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1) opacity(0.7);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Product showcase ===== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }

.showcase-content h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}
.showcase-content p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-muted);
}
.showcase-tag img { width: 18px; height: 18px; filter: brightness(0) invert(1) opacity(0.6); }

.showcase-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.showcase-image img { width: 100%; }

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.testimonial-user img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
}
.testimonial-user-role {
  font-size: 13px;
  color: var(--color-text-muted);
}
.testimonial-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(192,132,252,0.08));
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: var(--radius);
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}
.cta-banner p {
  font-size: 16px;
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo img { height: 28px; }
.footer-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-white); }

/* ===== Inner pages ===== */
.page-content {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
  max-width: 760px;
  margin: 0 auto;
}
.page-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}
.page-content .subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin: 40px 0 12px;
}
.page-content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.page-content a { color: var(--color-accent-hover); }
.page-content a:hover { text-decoration: underline; }
.page-content strong { color: var(--color-text); }

.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    gap: 20px;
  }
  .nav-toggle { display: flex; }

  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse { direction: ltr; }

  .cta-banner { padding: 40px 28px; }
  .cta-banner { flex-direction: column; }

  .section { padding: 64px 0; }
}
