:root {
  --orange: #ffb26a;
  --orange-soft: #ffd7b0;

  --bg-light: #ffffff;
  --bg-dark: #0c0c0c;

  --text-light: #111;
  --text-dark: #eee;

  --grain-opacity: 0.08;
}

/* TEXT SELECTION */
::selection {
  background: var(--orange);
  color: #111;
}

/* BASE */
body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  transition: background .6s ease, color .6s ease;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

html {
  scroll-behavior: smooth;
}

/* MENU */
.menu {
  position: fixed;
  top: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  opacity: 0.75;
  z-index: 10;
}

.menu__dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
}

.menu nav {
  display: flex;
  gap: 20px;
}

.menu nav a {
  position: relative;
  padding-bottom: 4px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: inherit;
}

.menu nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width .35s ease, left .35s ease;
}

.menu nav a:hover::after {
  width: 100%;
  left: 0;
}

#toggleTheme {
  background: none;
  border: none;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__title {
  font-size: clamp(4rem, 18vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

body.dark .hero__title {
  color: var(--text-dark);
}

.hero__title.outline {
  position: absolute;
  z-index: 1;
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
  opacity: 0.3;
  transform: translateY(12px);
}

.hero__subtitle {
  position: absolute;
  bottom: 15%;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* HERO BACKGROUND */
.bg-gradient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, var(--orange) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, var(--orange-soft) 0%, transparent 55%);
  filter: blur(60px);
}

body.dark .bg-gradient {
  background:
    radial-gradient(circle at 30% 40%, #ff9f50 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, #ff7a30 0%, transparent 60%);
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
}

/* SECTIONS */
.section {
  position: relative;
  padding: 140px 10vw;
  overflow: hidden;
}

/* GRADIENT SECTIONS */
.section.has-gradient::before {
  content: "";
  position: absolute;
  inset: -40%;
  filter: blur(120px);
  z-index: 0;
}

.section.has-gradient.g1::before {
  background: radial-gradient(circle at 30% 30%, rgba(255,178,106,.35), transparent 60%);
}

.section.has-gradient.g2::before {
  background: radial-gradient(circle at 70% 40%, rgba(255,178,106,.3), transparent 65%);
}

.section.has-gradient.g3::before {
  background: radial-gradient(circle at 50% 60%, rgba(255,178,106,.32), transparent 60%);
}

.section.has-gradient.g4::before {
  background: radial-gradient(circle at 20% 50%, rgba(255,178,106,.28), transparent 65%);
}

body.dark .section.has-gradient.g1::before {
  background: radial-gradient(circle at 30% 30%, rgba(255,140,60,.45), transparent 60%);
}

body.dark .section.has-gradient.g2::before {
  background: radial-gradient(circle at 70% 40%, rgba(255,120,40,.42), transparent 65%);
}

body.dark .section.has-gradient.g3::before {
  background: radial-gradient(circle at 50% 60%, rgba(255,150,70,.4), transparent 60%);
}

body.dark .section.has-gradient.g4::before {
  background: radial-gradient(circle at 20% 50%, rgba(255,130,50,.38), transparent 65%);
}

.section > * {
  position: relative;
  z-index: 1;
}

.section__index {
  position: absolute;
  top: 40px;
  left: 40px;
  opacity: 0.5;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 40px;
}

.text {
  max-width: 600px;
  line-height: 1.8;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  padding: 40px;
  border-radius: 30px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(20px);
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: transform .4s ease, box-shadow .4s ease;
}

body.dark .card {
  background: rgba(0,0,0,.35);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(255,178,106,.35);
}

/* CTA */
.cta {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

/* SCROLL ANIMATION */
.animate {
  transform: translateY(80px);
  opacity: 0;
  transition: transform .8s ease, opacity .8s ease;
}

.animate.visible {
  transform: translateY(0);
  opacity: 1;
}

/* FOOTER */
footer {
  padding: 40px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}
