/* ═══════════════════════════════════════════════════════
   global.css — shared base styles for all Preto.ai pages
   ═══════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── DESIGN TOKENS ─── */
:root {
  --bg: #060B18;
  --bg-card: #0D1425;
  --bg-card-hover: #111B33;
  --accent: #00D4AA;
  --accent-dim: #00B894;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --white: #F0F4F8;
  --gray: #8B95A5;
  --gray-light: #C0C8D4;
  --border: rgba(255, 255, 255, 0.06);
  --red: #FF6B6B;
  --purple: #7C6CFF;
  --orange: #FFB347;
  --font: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }

/* ─── LAYOUT ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { padding: 100px 0; }

/* ─── BUTTONS ─── */
.btn-primary {
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0,212,170,0.25);
}

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--gray-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* ─── SECTION TYPOGRAPHY ─── */
.section-label {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.logo-name {
  font-size: 25px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.logo-name .accent { color: var(--accent); }

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

.nav-links a {
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.cta-nav {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid rgba(0, 212, 170, 0.4);
  color: var(--accent);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.cta-nav:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 40px 0;
}

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

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

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

footer .links a {
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV ─── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-hamburger { display: flex; }
  .cta-nav { display: none; }
  footer .container { flex-direction: column; gap: 16px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 11, 24, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 24px 20px;
    gap: 0;
    backdrop-filter: blur(20px);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 15px; }
  .nav-links a:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 44px 0; }
  .section-title { font-size: clamp(22px, 7vw, 30px); }
}
