:root{
  --bg:#f2f5ff;
  --surface:#ffffff;
  --surface-2:#eef2ff;

  --text:#1e293b;
  --muted:#64748b;

  --primary:#6366f1;
  --secondary:#8b5cf6;
  --accent:#06b6d4;

  --border:#dbe4f0;
  --radius:24px;

  --shadow:
    0 10px 30px rgba(99,102,241,.08),
    0 2px 8px rgba(15,23,42,.04);
}

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Inter",system-ui,sans-serif;
  background:
    radial-gradient(circle at top left,#ff0000 0%,transparent 30%),
    radial-gradient(circle at bottom right,#e9d5ff 0%,transparent 30%),
    var(--bg);

  color:var(--text);
  line-height:1.7;
  min-height:100vh;
}

/* NAVBAR */

header{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,.7);
  border-bottom:1px solid rgba(255,255,255,.5);
}

nav{
  max-width:1200px;
  margin:auto;
  padding:1rem 1.5rem;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  display:flex;
  align-items:center;
  gap:.8rem;

  font-size:1.1rem;
  font-weight:800;
}

.logo-circle{
  width:42px;
  height:42px;

  border-radius:14px;

  background:linear-gradient(135deg,var(--primary),var(--accent));

  display:grid;
  place-items:center;

  color:white;
  font-weight:900;

  box-shadow:0 10px 20px rgba(99,102,241,.25);
}

.nav-links{
  display:flex;
  gap:1rem;
}

.nav-links a{
  text-decoration:none;
  color:var(--muted);

  padding:.65rem 1rem;
  border-radius:12px;

  transition:.2s;
}

.nav-links a:hover{
  background:white;
  color:var(--primary);
}

/* LAYOUT */

.container{
  max-width:1200px;
  margin:auto;
  padding:2rem 1.5rem;
}

/* HERO */

.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:2rem;
  align-items:center;

  margin-top:2rem;
}

.hero-text h1{
  font-size:clamp(2.5rem,6vw,5rem);
  line-height:1;

  margin-bottom:1rem;

  font-weight:900;
}

.hero-text h1 span{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-text p{
  font-size:1.1rem;
  color:var(--muted);

  max-width:600px;
}

.hero-buttons{
  display:flex;
  gap:1rem;
  margin-top:2rem;
  flex-wrap:wrap;
}

.btn{
  border:none;
  border-radius:18px;

  padding:.95rem 1.4rem;

  font-size:1rem;
  font-weight:700;

  cursor:pointer;
  transition:.25s;
}

.btn-primary{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;

  box-shadow:0 12px 24px rgba(99,102,241,.22);
}

.btn-primary:hover{
  transform:translateY(-3px) scale(1.02);
}

.btn-secondary{
  background:white;
  color:var(--text);
  border:1px solid var(--border);
}

.btn-secondary:hover{
  background:var(--surface-2);
}

/* HERO CARD */

.hero-card{
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(20px);

  border:1px solid rgba(255,255,255,.5);

  border-radius:32px;

  padding:2rem;

  box-shadow:var(--shadow);

  position:relative;
  overflow:hidden;
}

.hero-card::before{
  content:"";
  position:absolute;

  width:220px;
  height:220px;

  background:linear-gradient(135deg,var(--primary),transparent);

  border-radius:50%;

  top:-80px;
  right:-80px;

  opacity:.18;
}

.hero-card h2{
  font-size:1.6rem;
  margin-bottom:1rem;
}

.hero-card p{
  color:var(--muted);
}

/* GRID */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.5rem;

  margin-top:2rem;
}

/* CARD */

.card{
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(10px);

  border:1px solid rgba(255,255,255,.6);

  border-radius:var(--radius);

  padding:1.5rem;

  transition:.25s;

  box-shadow:var(--shadow);
}

.card:hover{
  transform:translateY(-6px);
}

.card h3{
  margin-bottom:.7rem;
  font-size:1.2rem;
}

.card p{
  color:var(--muted);
}

/* TAG */

.tag{
  display:inline-block;

  background:linear-gradient(135deg,#dbeafe,#ede9fe);

  color:var(--primary);

  font-size:.85rem;
  font-weight:700;

  padding:.35rem .8rem;

  border-radius:999px;

  margin-bottom:1rem;
}

/* CODE */

pre{
  background:#0f172a;
  color:#e2e8f0;

  border-radius:24px;

  padding:1.4rem;

  overflow:auto;

  margin-top:1rem;

  box-shadow:0 10px 20px rgba(15,23,42,.15);
}

code{
  font-family:"JetBrains Mono",monospace;
}

/* INFO BOX */

.note{
  margin-top:1.5rem;

  background:linear-gradient(135deg,#dbeafe,#f5f3ff);

  border:1px solid #c7d2fe;

  padding:1.2rem;

  border-radius:20px;

  color:#3730a3;
}

/* TABLE */

.table-wrap{
  overflow:auto;
  margin-top:1rem;
}

table{
  width:100%;
  border-collapse:collapse;

  background:white;

  border-radius:20px;
  overflow:hidden;

  box-shadow:var(--shadow);
}

th{
  background:var(--surface-2);
}

th,td{
  padding:1rem;
  border-bottom:1px solid var(--border);
  text-align:left;
}

/* FOOTER */

footer{
  margin-top:4rem;
  padding:2rem 1rem;

  text-align:center;

  color:var(--muted);
}

/* MOBILE */

@media(max-width:900px){

  .hero{
    grid-template-columns:1fr;
  }

  .hero-text{
    text-align:center;
  }

  .hero-buttons{
    justify-content:center;
  }

  nav{
    flex-direction:column;
    gap:1rem;
  }

  .nav-links{
    justify-content:center;
    flex-wrap:wrap;
  }
}