/* ===== HIRANIS JOURNAL — MAIN STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  --accent: #00ff80;
  --accent-dim: rgba(0,255,128,0.15);
  --bg: #060a0f;
  --bg2: #0c1118;
  --bg3: #111820;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(0,255,128,0.25);
  --text: #e8edf5;
  --text2: rgba(232,237,245,0.55);
  --text3: rgba(232,237,245,0.3);
  --green: #00ff80;
  --red: #ff4d6d;
  --yellow: #ffd166;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* BACKGROUNDS */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,255,128,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,128,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 350px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(0,255,128,0.07) 0%, transparent 70%);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,10,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: 64px;
}
.logo {
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  white-space: nowrap; color: var(--text);
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 28px; flex: 1;
}
.nav-links a {
  font-size: 13px; color: var(--text2);
  transition: color 0.2s; letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn-outline {
  padding: 8px 20px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm); color: var(--accent);
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.btn-outline:hover { background: var(--accent); color: var(--bg); }

.btn-primary-sm {
  padding: 8px 20px;
  background: var(--accent); color: var(--bg);
  border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  white-space: nowrap; transition: opacity 0.2s;
}
.btn-primary-sm:hover { opacity: 0.9; }

.hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 22px; cursor: pointer;
  margin-left: auto;
}

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.mobile-menu a {
  padding: 10px 0; color: var(--text2);
  font-size: 15px; border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 24px 60px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 60px; align-items: center;
  position: relative; z-index: 2;
}
.hero-left { flex: 1; min-width: 0; }
.hero-right { flex: 1; min-width: 0; }

.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px; padding: 6px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--accent);
  font-weight: 500; letter-spacing: 1px;
  margin-bottom: 24px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; letter-spacing: -2px;
  line-height: 1.05; margin-bottom: 20px;
}
h1 em { color: var(--accent); font-style: normal; }

.hero-sub {
  font-size: 15px; color: var(--text2); line-height: 1.75;
  max-width: 500px; margin-bottom: 36px;
  font-family: 'DM Mono', monospace;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--accent); color: var(--bg);
  border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-primary.full { width: 100%; justify-content: center; }
.btn-primary.large { padding: 16px 40px; font-size: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text2);
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--border-accent); color: var(--accent); }

.trust-row {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.trust-row span {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text3);
  font-family: 'DM Mono', monospace;
}
.trust-row i { color: var(--accent); font-size: 14px; }

/* DASHBOARD PREVIEW */
.dashboard-preview {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.preview-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #ffbd2e; }
.preview-dot.green { background: #28c840; }
.preview-title {
  margin-left: 8px; font-size: 11px; color: var(--text3);
  font-family: 'DM Mono', monospace;
}
.preview-body { padding: 16px; }

.mini-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  margin-bottom: 16px;
}
.mini-stat {
  background: var(--bg3); border-radius: 8px;
  padding: 10px 12px; border: 1px solid var(--border);
}
.ms-val { font-size: 16px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 2px; }
.ms-val.green { color: var(--green); }
.ms-label { font-size: 10px; color: var(--text3); font-family: 'DM Mono', monospace; }

.chart-area { margin-bottom: 14px; }
.chart-area svg { width: 100%; }

.recent-trades { display: flex; flex-direction: column; gap: 6px; }
.trade-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: 12px;
}
.trade-row .pair { font-weight: 700; flex: 1; font-size: 12px; }
.trade-row .dir {
  padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
  font-family: 'DM Mono', monospace;
}
.trade-row .dir.buy { background: rgba(0,255,128,0.15); color: var(--green); }
.trade-row .dir.sell { background: rgba(255,77,109,0.15); color: var(--red); }
.trade-row .pips { color: var(--text2); font-family: 'DM Mono', monospace; font-size: 11px; }
.trade-row .pl { font-weight: 700; font-family: 'DM Mono', monospace; }
.pl.green { color: var(--green); }
.pl.red { color: var(--red); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg2); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px; position: relative; z-index: 2;
}
.stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 0 40px; }
.stat-num { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 11px; color: var(--text3);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.8px; margin-top: 4px;
}
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== SECTIONS ===== */
.section-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 24px;
}
.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 2px; color: var(--accent);
  margin-bottom: 14px;
}
.section-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1.5px;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 15px; color: var(--text2);
  font-family: 'DM Mono', monospace;
  max-width: 540px; line-height: 1.7; margin-bottom: 50px;
}

/* FEATURES */
.features-section { background: var(--bg); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1px; background: var(--border);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.feat-card {
  background: var(--bg2); padding: 28px;
  transition: background 0.2s;
}
.feat-card:hover { background: rgba(0,255,128,0.03); }
.feat-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--accent); font-size: 20px;
}
.feat-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--text2); line-height: 1.65; font-family: 'DM Mono', monospace; }

/* HOW IT WORKS */
.how-section { background: var(--bg2); }
.steps-row {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.step { flex: 1; min-width: 220px; }
.step-num {
  font-size: 40px; font-weight: 800; letter-spacing: -2px;
  color: var(--border-accent); margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text2); font-family: 'DM Mono', monospace; line-height: 1.65; }
.step-arrow { color: var(--text3); font-size: 24px; }

/* PRICING */
.pricing-section { background: var(--bg); }
.pricing-grid { display: flex; justify-content: center; }
.price-card {
  background: var(--bg2);
  border: 2px solid var(--border-accent);
  border-radius: 16px; padding: 40px;
  max-width: 440px; width: 100%;
  text-align: center;
  position: relative;
}
.price-card.free { border-color: var(--accent); }
.price-badge {
  display: inline-block;
  background: var(--accent); color: var(--bg);
  font-size: 11px; font-weight: 800;
  padding: 4px 16px; border-radius: 100px;
  margin-bottom: 20px; letter-spacing: 1px;
  font-family: 'DM Mono', monospace;
}
.price-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.price-amount { font-size: 52px; font-weight: 800; letter-spacing: -2px; margin-bottom: 28px; }
.price-amount span { font-size: 18px; color: var(--text2); font-weight: 400; }
.price-features { list-style: none; text-align: left; margin-bottom: 32px; }
.price-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text2);
}
.price-features li:last-child { border-bottom: none; }
.price-features i { color: var(--accent); font-size: 16px; flex-shrink: 0; }

/* COMMUNITY */
.community-section { background: var(--bg2); }
.community-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 20px;
}
.testimonial {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.stars { color: var(--yellow); font-size: 14px; margin-bottom: 14px; }
.testimonial p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; font-family: 'DM Mono', monospace; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.t-author strong { display: block; font-size: 14px; }
.t-author span { font-size: 12px; color: var(--text3); font-family: 'DM Mono', monospace; }

/* CTA BANNER */
.cta-banner {
  background: var(--bg); position: relative;
  overflow: hidden; text-align: center;
  padding: 80px 24px;
}
.cta-inner { position: relative; z-index: 2; }
.cta-banner h2 { font-size: clamp(28px,4vw,42px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.cta-banner p { font-size: 15px; color: var(--text2); font-family: 'DM Mono', monospace; margin-bottom: 36px; }

/* FOOTER */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 60px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { flex: 1; min-width: 240px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text2); font-family: 'DM Mono', monospace; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 16px;
  transition: border-color 0.2s, color 0.2s;
}
.social-links a:hover { border-color: var(--border-accent); color: var(--accent); }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.fl-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; }
.fl-col a {
  display: block; font-size: 13px; color: var(--text2);
  font-family: 'DM Mono', monospace; margin-bottom: 10px;
  transition: color 0.2s;
}
.fl-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text3); font-family: 'DM Mono', monospace;
}

/* ===== AUTH PAGES ===== */
.auth-body {
  min-height: 100vh; display: flex;
  background: var(--bg);
}
.auth-back {
  position: fixed; top: 20px; left: 20px; z-index: 50;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 16px;
  font-size: 13px; color: var(--text2);
  transition: color 0.2s, border-color 0.2s;
}
.auth-back:hover { color: var(--accent); border-color: var(--border-accent); }

.auth-wrapper {
  display: flex; width: 100%; min-height: 100vh;
  position: relative; z-index: 2;
}
.auth-left {
  flex: 1; background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 80px 60px; display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,255,128,0.06) 0%, transparent 65%);
}
.auth-brand .logo { font-size: 24px; margin-bottom: 6px; }
.auth-brand p { font-size: 13px; color: var(--text3); font-family: 'DM Mono', monospace; }
.auth-tagline h2 { font-size: 32px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 24px; line-height: 1.2; }
.auth-benefits { list-style: none; }
.auth-benefits li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text2);
  font-family: 'DM Mono', monospace;
  border-bottom: 1px solid var(--border);
}
.auth-benefits li:last-child { border-bottom: none; }
.auth-benefits i { color: var(--accent); }
.auth-chart { opacity: 0.5; }
.auth-chart svg { width: 100%; }

.auth-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 60px 40px;
}
.auth-box {
  width: 100%; max-width: 420px;
}
.auth-box h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--text2); font-family: 'DM Mono', monospace; margin-bottom: 28px; }

.auth-msg {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 16px; font-family: 'DM Mono', monospace;
}
.auth-msg.success { background: rgba(0,255,128,0.1); border: 1px solid var(--border-accent); color: var(--green); }
.auth-msg.error { background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.3); color: var(--red); }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 11px; color: var(--text2); margin-bottom: 7px;
  font-family: 'DM Mono', monospace; letter-spacing: 0.8px; text-transform: uppercase;
}
.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-wrap > i {
  position: absolute; left: 14px; color: var(--text3); font-size: 16px;
  pointer-events: none;
}
.input-wrap input {
  width: 100%; padding: 12px 14px 12px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.input-wrap input:focus { border-color: rgba(0,255,128,0.5); }
.input-wrap input::placeholder { color: var(--text3); }
.eye-btn {
  position: absolute; right: 12px; background: none; border: none;
  color: var(--text3); cursor: pointer; font-size: 16px;
  transition: color 0.2s;
}
.eye-btn:hover { color: var(--accent); }

.form-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text2); cursor: pointer;
  font-family: 'DM Mono', monospace;
}
.checkbox-label input { accent-color: var(--accent); }
.checkbox-label.terms { margin-bottom: 16px; font-size: 12px; }
.checkbox-label a { color: var(--accent); }

.forgot-link { font-size: 12px; color: var(--accent); font-family: 'DM Mono', monospace; }

.strength-bar {
  height: 3px; background: var(--border); border-radius: 10px;
  margin-top: 8px; overflow: hidden;
}
.strength-fill {
  height: 100%; border-radius: 10px; width: 0;
  transition: width 0.3s, background 0.3s;
}
.strength-label { font-size: 11px; font-family: 'DM Mono', monospace; margin-top: 5px; color: var(--text3); }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.divider span { font-size: 11px; color: var(--text3); font-family: 'DM Mono', monospace; white-space: nowrap; }

.btn-google {
  width: 100%; padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text2);
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 16px;
}
.btn-google:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.auth-switch { text-align: center; font-size: 13px; color: var(--text2); font-family: 'DM Mono', monospace; }
.auth-switch a { color: var(--accent); }

/* COLORS */
.green { color: var(--green); }
.red { color: var(--red); }
.yellow { color: var(--yellow); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-right { display: none; }
  .hero-inner { flex-direction: column; }
  .nav-links { display: none; }
  .nav-actions .btn-outline { display: none; }
  .hamburger { display: block; }
  .auth-left { display: none; }
  .auth-right { flex: 1; padding: 80px 24px; }
  .stats-inner { gap: 0; }
  .stat-item { padding: 12px 20px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 40px; }
}

@media (max-width: 600px) {
  h1 { font-size: 36px; letter-spacing: -1.5px; }
  .section-inner { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .community-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}
