/* ══════════════════════════════════════
   FIXIO — Global Styles
   ══════════════════════════════════════ */

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

:root {
  --cyan: #00E5FF;
  --teal: #00B894;
  --purple: #A78BFA;
  --amber: #F59E0B;
  --green: #34D399;
  --bg: #080C12;
  --bg2: #0E1420;
  --bg3: #131B2A;
  --text1: #FFFFFF;
  --text2: rgba(255,255,255,.6);
  --text3: rgba(255,255,255,.25);
  --border: rgba(0,229,255,.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text1); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased }
a { color: var(--cyan); text-decoration: none; transition: opacity .2s }
a:hover { opacity: .8 }
::selection { background: var(--cyan); color: var(--bg) }

/* Noise overlay */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: 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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .025;
}

/* ── Ambient Orbs ── */
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px) }
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,229,255,.08), transparent 70%); top: -100px; right: -100px; animation: float 12s ease-in-out infinite }
.orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,184,148,.06), transparent 70%); bottom: -200px; left: -200px; animation: float 15s ease-in-out infinite reverse }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(0,229,255,.04), transparent 70%); top: 50%; left: 30%; animation: float 10s ease-in-out infinite 3s }
@keyframes float { 0%,100% { transform: translate(0,0) } 50% { transform: translate(30px,-40px) } }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1 }
section { padding: 100px 0 }

/* ── Nav ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(8,12,18,.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.04); transition: background .3s }
nav.scrolled { background: rgba(8,12,18,.92) }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1120px; margin: 0 auto; padding: 0 24px }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none }
.nav-logo img { width: 36px; height: 36px; border-radius: 10px }
.nav-logo span { font-weight: 800; font-size: 22px; letter-spacing: -1px; background: linear-gradient(135deg, var(--cyan), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent }
.nav-links { display: flex; align-items: center; gap: 6px }
.nav-links a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text2); border-radius: 10px; transition: all .2s; text-decoration: none }
.nav-links a:hover { color: var(--text1); background: rgba(255,255,255,.04) }
.nav-links a.active { color: var(--cyan) }

/* Language selector */
.lang-select { position: relative }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; font-weight: 500; color: var(--text2); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; cursor: pointer; transition: all .2s; font-family: 'Outfit', sans-serif }
.lang-btn:hover { border-color: var(--cyan); color: var(--text1) }
.lang-btn svg { width: 14px; height: 14px; opacity: .5; transition: transform .2s }
.lang-btn.open svg { transform: rotate(180deg) }
.lang-dropdown { position: absolute; top: calc(100% + 6px); right: 0; width: 200px; max-height: 320px; overflow-y: auto; background: var(--bg2); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); display: none; z-index: 200 }
.lang-dropdown.show { display: block; animation: dropIn .2s ease-out }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: translateY(0) } }
.lang-dropdown button { width: 100%; padding: 10px 14px; font-size: 13px; color: var(--text2); background: none; border: none; text-align: left; cursor: pointer; transition: all .15s; font-family: 'Outfit', sans-serif }
.lang-dropdown button:hover { background: rgba(0,229,255,.06); color: var(--text1) }
.lang-dropdown button.active { color: var(--cyan); font-weight: 600; background: rgba(0,229,255,.04) }
.lang-dropdown::-webkit-scrollbar { width: 4px }
.lang-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px }

/* ── Hero ── */
.hero { padding: 140px 0 80px; text-align: center; position: relative; min-height: 90vh; display: flex; align-items: center }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background: rgba(0,229,255,.06); border: 1px solid rgba(0,229,255,.12); border-radius: 30px; font-size: 13px; font-weight: 500; color: var(--cyan); margin-bottom: 28px; animation: fadeUp .8s ease-out }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2s ease-in-out infinite }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 900; letter-spacing: -3px; line-height: 1.05; margin-bottom: 20px; animation: fadeUp .8s ease-out .1s both }
.hero h1 .gradient { background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 50%, var(--purple) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% 200%; animation: gradientShift 6s ease infinite }
@keyframes gradientShift { 0%,100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
.hero p { font-size: clamp(16px, 2vw, 20px); color: var(--text2); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; animation: fadeUp .8s ease-out .2s both }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s ease-out .3s both }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: 16px; font-weight: 600; border-radius: 14px; border: none; cursor: pointer; transition: all .25s; font-family: 'Outfit', sans-serif; text-decoration: none }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--teal)); color: #080C12; box-shadow: 0 4px 24px rgba(0,229,255,.25) }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,255,.35); opacity: 1 }
.btn-secondary { background: rgba(255,255,255,.04); color: var(--text1); border: 1px solid rgba(255,255,255,.08) }
.btn-secondary:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); opacity: 1 }
.btn svg { width: 18px; height: 18px }

/* ── Demo ── */
.demo-section { padding: 60px 0 100px }
.demo-card { max-width: 560px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg2); box-shadow: 0 40px 80px rgba(0,0,0,.4) }
.demo-header { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.04); display: flex; align-items: center; gap: 10px }
.demo-header .dots { display: flex; gap: 6px }
.demo-header .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.08) }
.demo-header .dots span:first-child { background: #FF5F57 }
.demo-header .dots span:nth-child(2) { background: #FEBC2E }
.demo-header .dots span:last-child { background: #28C840 }
.demo-header .title { font-size: 12px; color: var(--text3); font-weight: 500; margin-left: auto }
.demo-body { padding: 24px }
.demo-original { padding: 14px; background: rgba(255,255,255,.02); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.04); margin-bottom: 16px }
.demo-original .label { font-size: 10px; font-weight: 600; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px }
.demo-original p { font-size: 14px; color: var(--text2); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.15) }
.demo-arrow { text-align: center; padding: 4px 0; color: var(--text3) }
.demo-result { padding: 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 16px; transition: all .4s ease }
.demo-result .tone-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; margin-bottom: 8px; letter-spacing: .3px }
.demo-result p { font-size: 14px; color: var(--text1); line-height: 1.6 }
.tone-chips { display: flex; gap: 8px; flex-wrap: wrap }
.tone-chip { padding: 8px 18px; font-size: 13px; font-weight: 500; border-radius: 20px; cursor: pointer; transition: all .25s; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03); color: var(--text2); font-family: 'Outfit', sans-serif }
.tone-chip:hover { background: rgba(255,255,255,.06) }
.tone-chip.active { font-weight: 600 }

/* ── Section Titles ── */
.section-title { text-align: center; margin-bottom: 60px }
.section-title .tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(0,229,255,.06); border: 1px solid rgba(0,229,255,.1); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--cyan); margin-bottom: 16px; letter-spacing: .5px }
.section-title h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 14px }
.section-title p { font-size: 16px; color: var(--text2); max-width: 500px; margin: 0 auto }

/* ── Features Grid ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.feature-card { padding: 32px; border-radius: var(--radius-lg); background: var(--bg2); border: 1px solid rgba(255,255,255,.04); transition: all .35s; position: relative; overflow: hidden }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity .35s }
.feature-card:hover { border-color: rgba(0,229,255,.12); transform: translateY(-4px) }
.feature-card:hover::before { opacity: .5 }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 22px }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.3px }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.6 }

/* ── Security Grid ── */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px }
.security-card { padding: 28px; border-radius: var(--radius-lg); background: var(--bg2); border: 1px solid rgba(255,255,255,.04); display: flex; gap: 16px; align-items: flex-start; transition: all .3s }
.security-card:hover { border-color: rgba(0,229,255,.1) }
.security-icon { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px }
.security-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.2px }
.security-card p { font-size: 13px; color: var(--text2); line-height: 1.55 }
.encryption-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; background: rgba(0,229,255,.06); border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--cyan); font-family: 'JetBrains Mono', monospace; letter-spacing: .5px }

/* ── Legal Pages ── */
.legal-page { padding: 100px 0 60px; min-height: 100vh }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text2); margin-bottom: 32px; transition: color .2s; text-decoration: none }
.legal-back:hover { color: var(--cyan) }
.legal-header { margin-bottom: 40px }
.legal-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 8px }
.legal-header .date { font-size: 14px; color: var(--text3); font-weight: 500 }
.legal-section { margin-bottom: 24px; padding: 24px; background: var(--bg2); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.03) }
.legal-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--cyan); letter-spacing: -.2px }
.legal-section p { font-size: 14px; color: var(--text2); line-height: 1.75 }

/* ── Footer ── */
footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,.04) }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px }
.footer-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text1) }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px }
.footer-brand span { font-weight: 700; font-size: 16px; letter-spacing: -.5px }
.footer-links { display: flex; gap: 24px }
.footer-links a { font-size: 13px; color: var(--text3); font-weight: 500; transition: color .2s }
.footer-links a:hover { color: var(--cyan) }
.footer-copy { font-size: 12px; color: var(--text3) }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s cubic-bezier(.22,1,.36,1) }
.reveal.visible { opacity: 1; transform: translateY(0) }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links > a { display: none }
  .hero { padding: 110px 0 60px; min-height: auto }
  .hero h1 { letter-spacing: -1.5px }
  .features { grid-template-columns: 1fr }
  .security-grid { grid-template-columns: 1fr }
  .footer-inner { flex-direction: column; text-align: center }
  .hero-cta { flex-direction: column; align-items: center }
  .btn { width: 100%; max-width: 320px; justify-content: center }
  section { padding: 60px 0 }
}

@media (max-width: 480px) {
  .container { padding: 0 16px }
  .demo-body { padding: 16px }
  .tone-chips { gap: 6px }
  .tone-chip { padding: 6px 14px; font-size: 12px }
}
