@property --a { syntax:'<angle>'; initial-value:0deg; inherits:false; }
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:system-ui,-apple-system,sans-serif; background:#080a0d; color:#f4f7f8; min-height:100vh; overflow-x:hidden; }

/* ── BG LOGO ── */
.bg-logo { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; pointer-events:none; z-index:0; }
.bg-logo img { width:min(680px,85vw); height:min(680px,85vw); object-fit:contain; opacity:0.045; filter:blur(14px) grayscale(0.6) brightness(0.5); user-select:none; }

/* ── NAV ── */
.nav { position:fixed; top:0; left:0; right:0; z-index:200; display:flex; align-items:center; justify-content:space-between; padding:14px 32px; background:rgba(8,10,13,.82); backdrop-filter:blur(20px); border-bottom:1px solid #151d24; }
.nav-brand { display:flex; align-items:center; gap:10px; cursor:pointer; }
.nav-brand img { width:36px; height:36px; border-radius:10px; object-fit:cover; }
.nav-brand span { font-weight:900; font-size:16px; color:#f4f7f8; letter-spacing:.3px; }
.nav-links { display:flex; gap:4px; }
.nav-btn { background:none; border:1px solid transparent; color:#8fa3ab; padding:7px 15px; border-radius:8px; cursor:pointer; font-size:13px; font-family:inherit; font-weight:500; transition:all .2s; }
.nav-btn:hover { color:#f4f7f8; border-color:#1e3040; background:rgba(255,255,255,.04); }
.nav-btn.active { color:#63f2d0; border-color:rgba(99,242,208,.3); background:rgba(99,242,208,.07); }

/* ── LANG PICKER ── */
.lang-picker { position:relative; }
.lang-btn { background:rgba(255,255,255,.05); border:1px solid #1e3040; color:#8fa3ab; padding:7px 13px; border-radius:8px; cursor:pointer; font-size:12px; font-family:inherit; transition:all .2s; }
.lang-btn:hover { color:#f4f7f8; border-color:rgba(99,242,208,.3); }
.lang-dropdown { position:absolute; top:calc(100% + 8px); right:0; background:#0d1921; border:1px solid #1e3040; border-radius:12px; padding:6px; min-width:150px; display:none; flex-direction:column; gap:2px; box-shadow:0 10px 40px rgba(0,0,0,.6); z-index:300; }
.lang-dropdown.open { display:flex; }
.lang-dropdown button { background:none; border:none; color:#8fa3ab; padding:8px 12px; border-radius:7px; cursor:pointer; font-size:13px; font-family:inherit; text-align:left; transition:all .15s; }
.lang-dropdown button:hover { background:#132028; color:#f4f7f8; }

/* ── PAGES ── */
.page { display:none; position:relative; z-index:1; min-height:100vh; padding-top:72px; }
.page.active { display:block; }

/* ── HERO ── */
.hero { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:40px; max-width:1200px; margin:0 auto; padding:80px 40px 60px; min-height:90vh; }
.hero-tag { color:#63f2d0; font-size:13px; font-weight:700; letter-spacing:.5px; margin-bottom:18px; }
.hero-title { font-size:clamp(34px,5.5vw,62px); font-weight:900; line-height:1.08; margin-bottom:18px; }
.rgb-text { background:linear-gradient(90deg,#63f2d0,#36c8ff,#a855f7,#ff4d5e,#ff9a2b,#63f2d0); background-size:300% auto; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; animation:rgbm 4s linear infinite; }
@keyframes rgbm { to { background-position:300% center; } }
.hero-sub { color:#8fa3ab; font-size:16px; line-height:1.75; max-width:440px; margin-bottom:40px; }
.hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.stat { display:flex; flex-direction:column; gap:3px; }
.stat-up { color:#63f2d0; font-size:12px; }
.stat strong { font-size:22px; font-weight:900; color:#f4f7f8; }
.stat small { font-size:12px; color:#8fa3ab; }
.hero-right { display:flex; align-items:center; justify-content:center; }
#globe { border-radius:50%; }

/* ── SCANNER SECTION ── */
.scanner-section { max-width:780px; margin:0 auto; padding:40px 24px 80px; }
.section-label { color:#63f2d0; font-size:12px; font-weight:700; letter-spacing:.6px; margin-bottom:12px; }
.scanner-section h2 { font-size:28px; font-weight:900; margin-bottom:28px; }
.chat-history { display:flex; flex-direction:column; gap:10px; margin-bottom:14px; max-height:380px; overflow-y:auto; padding-right:4px; }
.chat-history::-webkit-scrollbar { width:4px; }
.chat-history::-webkit-scrollbar-thumb { background:#1e3040; border-radius:4px; }
.msg { padding:12px 15px; border-radius:13px; font-size:14px; line-height:1.65; animation:fu .25s ease; }
@keyframes fu { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }
.msg.user { background:#112030; border:1px solid #1e3040; align-self:flex-end; max-width:76%; }
.msg.ai { background:#091419; border:1px solid #1e3040; align-self:flex-start; max-width:92%; }
.msg-label { font-size:10px; color:#8fa3ab; font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:5px; }
.score-row { display:flex; align-items:center; gap:10px; margin:8px 0 4px; }
.score-num { font-size:30px; font-weight:900; }
.risk-pill { padding:3px 10px; border-radius:999px; font-size:11px; font-weight:700; }
.p-safe { background:rgba(80,250,123,.12); color:#50fa7b; }
.p-warn { background:rgba(255,200,87,.12); color:#ffc857; }
.p-danger { background:rgba(255,77,94,.12); color:#ff4d5e; }
.score-meter { height:5px; background:#1e3040; border-radius:999px; overflow:hidden; margin:5px 0; }
.score-fill { height:100%; border-radius:999px; transition:width .7s ease; }
.reason-list { padding-left:14px; margin-top:8px; }
.reason-list li { font-size:13px; color:#8fa3ab; margin-bottom:3px; }
.typing-dots { display:flex; gap:5px; align-items:center; padding:4px 0; }
.dot { width:6px; height:6px; border-radius:50%; background:#63f2d0; animation:bounce .9s infinite; }
.dot:nth-child(2){animation-delay:.2s} .dot:nth-child(3){animation-delay:.4s}
@keyframes bounce{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-5px)}}

/* ── RGB INPUT ── */
.rgb-ring { padding:2px; border-radius:18px; background:linear-gradient(var(--a),#63f2d0,#36c8ff,#a855f7,#ff4d5e,#ff9a2b,#63f2d0); animation:spin 3s linear infinite; }
@keyframes spin { to{--a:360deg} }
.input-box { background:#0b1519; border-radius:16px; padding:13px 14px 10px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.chip { display:flex; align-items:center; gap:5px; background:#112030; border:1px solid #1e3040; border-radius:8px; padding:4px 9px; font-size:12px; color:#8fa3ab; }
.chip button { background:none; border:none; color:#8fa3ab; cursor:pointer; padding:0; font-size:14px; line-height:1; }
textarea#mainInput { width:100%; background:transparent; border:none; color:#f4f7f8; font-size:15px; font-family:inherit; resize:none; line-height:1.6; min-height:52px; max-height:150px; outline:none; }
textarea#mainInput::placeholder { color:#2a404e; }
.input-footer { display:flex; justify-content:space-between; align-items:center; margin-top:8px; position:relative; }
.plus-wrap { position:relative; }
.plus-btn { width:34px; height:34px; border-radius:50%; background:#112030; border:1px solid #1e3040; color:#8fa3ab; font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .2s; }
.plus-btn:hover { border-color:rgba(99,242,208,.4); color:#63f2d0; }
.attach-menu { position:absolute; bottom:42px; left:0; background:#0d1921; border:1px solid #1e3040; border-radius:12px; padding:6px; min-width:170px; display:none; flex-direction:column; gap:2px; box-shadow:0 8px 30px rgba(0,0,0,.7); z-index:20; }
.attach-menu.open { display:flex; }
.attach-menu button { background:none; border:none; color:#8fa3ab; padding:8px 12px; border-radius:7px; cursor:pointer; font-size:13px; font-family:inherit; text-align:left; transition:all .15s; display:flex; align-items:center; gap:8px; }
.attach-menu button:hover { background:#112030; color:#f4f7f8; }
.send-btn { height:34px; padding:0 20px; border-radius:10px; background:linear-gradient(135deg,#63f2d0,#36c8ff); color:#04100e; border:none; font-weight:800; cursor:pointer; font-size:13px; font-family:inherit; transition:opacity .2s; }
.send-btn:hover { opacity:.85; }
.send-btn:disabled { opacity:.4; cursor:not-allowed; }
.usage-bar { font-size:12px; color:#2a404e; text-align:center; margin-top:10px; }
.usage-bar a { color:#63f2d0; cursor:pointer; text-decoration:none; }
.usage-bar span#usageText { color:#63f2d0; }

/* ── PRICING ── */
.pricing-section { max-width:1100px; margin:0 auto; padding:80px 24px; text-align:center; }
.pricing-section h2 { font-size:34px; font-weight:900; margin-bottom:10px; }
.section-sub { color:#8fa3ab; font-size:15px; margin-bottom:36px; }
.billing-toggle { display:inline-flex; background:#0d1921; border:1px solid #1e3040; border-radius:999px; padding:4px; gap:4px; margin-bottom:44px; }
.bill-btn { background:none; border:none; color:#8fa3ab; padding:8px 22px; border-radius:999px; cursor:pointer; font-size:14px; font-family:inherit; font-weight:600; transition:all .2s; }
.bill-btn.active { background:linear-gradient(135deg,#6c47ff,#8b5cf6); color:#fff; }
.save-badge { background:rgba(99,242,208,.15); color:#63f2d0; font-size:10px; padding:2px 7px; border-radius:999px; margin-left:6px; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; text-align:left; }
.price-card { background:#0d1921; border:1px solid #1e3040; border-radius:20px; padding:28px; position:relative; transition:border-color .2s; }
.price-card:hover { border-color:#2a4060; }
.price-card.featured { border-color:rgba(108,71,255,.5); box-shadow:0 0 50px rgba(108,71,255,.1); }
.popular-badge { display:inline-flex; align-items:center; gap:5px; background:rgba(108,71,255,.15); border:1px solid rgba(108,71,255,.4); color:#a78bfa; font-size:11px; padding:4px 12px; border-radius:999px; margin-bottom:12px; font-weight:700; }
.price-for { font-size:12px; color:#8fa3ab; font-weight:600; margin-bottom:4px; }
.price-card h3 { font-size:28px; font-weight:900; margin-bottom:8px; }
.price-desc { font-size:13px; color:#8fa3ab; margin-bottom:20px; line-height:1.5; }
.price-amount { font-size:48px; font-weight:900; line-height:1; }
.price-period { font-size:13px; color:#8fa3ab; margin-bottom:20px; }
.whats-included { font-size:12px; font-weight:700; color:#f4f7f8; margin-bottom:12px; }
.price-card ul { list-style:none; display:flex; flex-direction:column; gap:8px; margin-bottom:24px; }
.price-card ul li { font-size:13px; color:#8fa3ab; display:flex; gap:8px; align-items:flex-start; }
.price-card ul li::before { content:'●'; color:#63f2d0; font-size:8px; margin-top:4px; flex-shrink:0; }
.price-card ul li.no { color:#2a404e; }
.price-card ul li.no::before { color:#2a404e; }
.price-btn { width:100%; padding:13px; border-radius:12px; font-weight:800; cursor:pointer; font-size:14px; font-family:inherit; transition:all .2s; }
.price-btn.outline { background:none; color:#f4f7f8; border:1px solid #2a4060; }
.price-btn.outline:hover { border-color:#63f2d0; color:#63f2d0; }
.price-btn.filled { background:linear-gradient(135deg,#6c47ff,#8b5cf6); color:#fff; border:none; }
.price-btn.filled:hover { opacity:.88; }

/* ── CONTACT ── */
.contact-section { display:grid; grid-template-columns:1fr 1.3fr; gap:60px; align-items:start; max-width:1100px; margin:0 auto; padding:80px 40px; min-height:90vh; }
.contact-left h2 { font-size:clamp(28px,4vw,42px); font-weight:900; line-height:1.15; margin:12px 0 36px; }
.contact-methods { display:flex; flex-direction:column; gap:0; }
.contact-method { display:flex; align-items:flex-start; gap:16px; padding:24px 0; }
.contact-divider { height:1px; background:#1e3040; }
.contact-icon { width:46px; height:46px; border-radius:50%; background:#112030; border:1px solid #1e3040; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.contact-method strong { font-size:14px; font-weight:700; display:block; margin-bottom:6px; }
.contact-method p { font-size:13px; color:#8fa3ab; line-height:1.7; }
.contact-form-card { background:#0d1921; border:1px solid #1e3040; border-radius:20px; padding:32px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:7px; margin-bottom:16px; }
.form-group label { font-size:13px; font-weight:600; color:#f4f7f8; }
.form-group input, .form-group textarea { background:#112030; border:1px solid #1e3040; border-radius:10px; color:#f4f7f8; padding:12px 14px; font-size:14px; font-family:inherit; outline:none; transition:border-color .2s; resize:vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color:#2a404e; }
.form-group input:focus, .form-group textarea:focus { border-color:rgba(99,242,208,.4); }
.send-msg-btn { width:100%; padding:14px; border-radius:12px; background:linear-gradient(135deg,#6c47ff,#8b5cf6); color:#fff; border:none; font-weight:800; font-size:15px; font-family:inherit; cursor:pointer; transition:opacity .2s; margin-top:4px; }
.send-msg-btn:hover { opacity:.88; }
.form-feedback { font-size:13px; text-align:center; margin-top:12px; min-height:20px; }

/* ── FOOTER ── */
.footer { position:relative; z-index:1; text-align:center; padding:24px; border-top:1px solid #151d24; color:#2a404e; font-size:13px; }

/* ── RESPONSIVE ── */
@media (max-width:900px) {
  .hero { grid-template-columns:1fr; padding:60px 24px 40px; text-align:center; min-height:auto; }
  .hero-sub { margin:0 auto 32px; }
  .hero-stats { grid-template-columns:repeat(2,1fr); }
  .hero-right { display:none; }
  .pricing-grid { grid-template-columns:1fr; }
  .contact-section { grid-template-columns:1fr; gap:40px; padding:60px 24px; }
  .form-row { grid-template-columns:1fr; }
  .nav-links { display:none; }
}
