:root {
  --bg: #020617;
  --text: #ffffff;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --green: #22c55e;
}

/* BASE */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* GLOBAL CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* BACKGROUND GLOW */
.bg-glow {
  position: fixed;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,0.25), transparent);
  top: -200px;
  left: -200px;
  filter: blur(120px);
  z-index: -1;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(2,6,23,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 100;
}

.logo img {
  height: 42px;
  transition: 0.2s;
}

.logo img:hover {
  transform: scale(1.05);
}

.navbar nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.navbar nav a:hover {
  color: white;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0;
}

.hero p {
  color: var(--muted);
  margin-top: 10px;
}

/* GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CARD (GLASS STYLE) */
.calculator-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(25px);
  border-radius: 20px;
  padding: 25px;
  margin-top: 25px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* INPUT */
.input-group {
  margin-bottom: 15px;
}

.input-group label {
  font-size: 13px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  background: #0f172a;
  color: white;
}

/* BUTTON */
button {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--green));
  color: white;
  transition: 0.2s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(59,130,246,0.3);
}

/* RESULT */
.result-box {
  margin-top: 15px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s ease;
}

.result-box.show {
  opacity: 1;
  transform: translateY(0);
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59,130,246,0.4), transparent);
  filter: blur(90px);
  animation: pulse 6s ease-in-out infinite;
}

.trend-graph {
  width: 280px;
  opacity: 0.9;
  animation: float 6s ease-in-out infinite;
}

/* ANIMATIONS */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%,100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* EXAMPLES */
.examples {
  text-align: center;
  margin-top: 30px;
}

.examples button {
  width: auto;
  margin: 6px;
  padding: 10px 16px;
  background: #1e293b;
  border-radius: 8px;
}

/* TOOLS GRID */
.tools h2 {
  text-align: center;
  margin-top: 60px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 15px;
}

.tool-card {
  padding: 20px;
  border-radius: 12px;
  background: #1e293b;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: 0.2s;
}

.tool-card:hover {
  background: #334155;
  transform: translateY(-4px);
}

/* FOOTER */
footer {
  text-align: center;
  color: var(--muted);
  margin-top: 60px;
}

/* MOBILE */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero h1 {
    font-size: 36px;
  }
}