/* ============================================================
   Zano Data Studio — styles.css
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=DM+Serif+Display&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #0A0F1A;
  --surface: #111827;
  --border: #1F2937;
  --green: #16A34A;
  --green-accent: #22C55E;
  --green-glow: rgba(22, 163, 74, 0.15);
  --green-grid: rgba(22, 163, 74, 0.06);
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #4B5563;

  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --transition: 300ms ease;
}

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

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.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green-accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtext {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes gridScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered hero animations */
.hero-animate {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0s; }
.hero-animate:nth-child(2) { animation-delay: 0.1s; }
.hero-animate:nth-child(3) { animation-delay: 0.2s; }
.hero-animate:nth-child(4) { animation-delay: 0.3s; }
.hero-animate:nth-child(5) { animation-delay: 0.4s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-accent);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-contact {
  font-size: 14px;
  padding: 8px 20px;
  border: 1px solid var(--green);
  border-radius: 100px;
  color: var(--green-accent) !important;
  transition: background var(--transition), color var(--transition) !important;
}

.nav-contact::after {
  display: none !important;
}

.nav-contact:hover {
  background: var(--green);
  color: var(--text-primary) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}

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

.nav-mobile a {
  font-size: 16px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(var(--green-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--green-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridScroll 8s linear infinite;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 70%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-accent);
  border: 1px solid var(--green);
  background: var(--green-glow);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--green);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}

/* ============================================================
   DASHBOARD MOCKUP (Hero right column)
   ============================================================ */
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 0 60px var(--green-glow), 0 0 120px rgba(22, 163, 74, 0.05);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-accent);
}

.dashboard-live-dot {
  width: 7px;
  height: 7px;
  background: var(--green-accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* KPI Cards */
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.kpi-change {
  font-size: 11px;
  color: var(--green-accent);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* CSS Line Chart */
.dashboard-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  height: 100px;
  position: relative;
  overflow: hidden;
}

.dashboard-chart-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.chart-line {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 50px;
}

.chart-line svg {
  width: 100%;
  height: 100%;
}

/* Channel Bars */
.dashboard-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-name {
  font-size: 12px;
  color: var(--text-secondary);
  width: 60px;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.channel-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.channel-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 1s ease;
}

.channel-value {
  font-size: 12px;
  color: var(--text-muted);
  width: 36px;
  text-align: right;
  font-family: var(--font-mono);
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  padding: 120px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 12px;
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: 0 0 40px var(--green-glow);
  transform: translateY(-2px);
}

.product-card.coming-soon {
  opacity: 0.5;
  border-top-color: var(--text-muted);
}

.product-card.coming-soon:hover {
  box-shadow: none;
  transform: none;
}

.product-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}

.product-name .coming-soon-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.product-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

.product-link {
  font-size: 14px;
  color: var(--green-accent);
  font-weight: 500;
  transition: color var(--transition);
}

.product-link:hover {
  color: var(--green);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 48px;
}

.services-positioning p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.services-positioning .credibility {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 18px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green-accent);
}

.service-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Services CTA */
.services-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 60px var(--green-glow);
}

.services-cta h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}

.services-cta p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.services-cta .btn-primary {
  display: inline-flex;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 120px 0;
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-content .section-heading {
  text-align: center;
}

.about-content .section-label {
  text-align: center;
}

.about-text {
  text-align: left;
}

.about-text p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.about-stat {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
}

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

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-social {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy {
  padding: 140px 0 80px;
}

.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-updated {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-accent);
  border: 1px solid var(--green);
  background: var(--green-glow);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.privacy-title {
  font-family: var(--font-display);
  font-size: 48px;
  margin-bottom: 12px;
}

.privacy-effective {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.privacy-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.privacy-content h2 .section-num {
  color: var(--green-accent);
  margin-right: 8px;
}

.privacy-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.privacy-content strong {
  color: var(--text-primary);
}

.privacy-content ul {
  margin-bottom: 16px;
  padding-left: 0;
}

.privacy-content li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.privacy-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.privacy-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    font-size: 48px;
  }

  .dashboard-card {
    max-width: 500px;
  }

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

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

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

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-heading {
    font-size: 32px;
  }

  .products {
    padding: 80px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .services {
    padding: 80px 0;
  }

  .about {
    padding: 80px 0;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .services-cta {
    padding: 28px 20px;
  }

  .privacy-title {
    font-size: 36px;
  }
}

/* Small mobile */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

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

  .hero-ctas a {
    text-align: center;
    justify-content: center;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .kpi-value {
    font-size: 18px;
  }
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-accent);
  outline-offset: 2px;
}
