/* ============================================================
   MINA LOGIC — Styles
   Dark, quiet, editorial. One accent, used sparingly.
   ============================================================ */

:root {
  /* Colors */
  --bg: #0a0c10;
  --bg-raised: #0e1117;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-glass: rgba(10, 12, 16, 0.85);

  --text-primary: #eef1f5;
  --text-secondary: #9aa5b4;
  --text-muted: #6b7686;

  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.12);
  --accent-text: #ffc45e;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --section-padding: clamp(72px, 9vw, 128px);
  --container-max: 1120px;
  --container-padding: clamp(20px, 4vw, 40px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
}

.section-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-header p {
  margin-top: 14px;
}

.text-link {
  color: var(--accent-text);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.text-link:hover {
  border-bottom-color: var(--accent-text);
}

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

section {
  padding: var(--section-padding) 0;
  position: relative;
}

section + section,
.cta-section {
  border-top: 1px solid var(--border);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 550;
  font-size: 0.92rem;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-text);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-live {
  color: #6ee7a0;
  border: 1px solid rgba(110, 231, 160, 0.3);
}

.badge-beta {
  color: var(--accent-text);
  border: 1px solid rgba(245, 166, 35, 0.35);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding var(--transition-base), background var(--transition-base);
}

.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

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

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1001;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: 100px var(--container-padding) 40px;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

.mobile-menu-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-actions .btn {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(150px, 20vh, 220px);
  padding-bottom: var(--section-padding);
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(245, 166, 35, 0.06), transparent 70%),
    var(--bg);
}

.hero-content {
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}

.hero h1 {
  margin-bottom: 26px;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 38px;
}

.hero-subtitle a {
  color: var(--accent-text);
  border-bottom: 1px solid rgba(245, 166, 35, 0.35);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: clamp(56px, 8vw, 88px);
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: clamp(32px, 5vw, 72px);
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base);
}

.product-card:hover {
  border-color: var(--border-strong);
}

.product-card--wide {
  grid-column: 1 / -1;
  border-color: rgba(245, 166, 35, 0.22);
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.05), var(--bg-card) 45%);
}

.product-card--wide:hover {
  border-color: rgba(245, 166, 35, 0.4);
}

.product-card-wide-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.product-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.product-card-desc {
  font-size: 0.96rem;
  margin-bottom: 24px;
}

.product-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-card-stats dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.product-card-stats dd {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.product-card-stack {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.product-card-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-card-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
}

.product-card-points li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding-left: 18px;
  border-left: 2px solid rgba(245, 166, 35, 0.35);
}

.product-card-points strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: clamp(28px, 3vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
}

.service-card:hover {
  border-color: var(--border-strong);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  margin-bottom: 18px;
  font-size: 0.94rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.process-step {
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}

.process-step-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
}

.process-duration {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.testimonial-text {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 26px;
}

.testimonial-text::before { content: '\201C'; }
.testimonial-text::after { content: '\201D'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 166, 35, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-text);
}

.testimonial-author-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
}

.testimonial-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-highlight-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
}

.about-highlight-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.about-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta-card {
  max-width: 640px;
}

.cta-card h2 {
  margin-bottom: 16px;
}

.cta-card p {
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  color: var(--text-muted);
}

.footer-social:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

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

.footer-note {
  font-size: 0.72rem;
  color: var(--accent-text);
  margin-left: 4px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.12s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.16s; opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .products-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .product-card-wide-inner {
    grid-template-columns: 1fr;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
    max-width: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .testimonials-grid,
  .process-timeline,
  .about-highlights {
    grid-template-columns: 1fr;
  }

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

  .product-card-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }

  .product-card-stats {
    grid-template-columns: 1fr 1fr;
  }
}
