/* =========================================================
   GreenableITS Dynamic Colorful Website
   File: css/style.css
   ========================================================= */

:root {
  --primary: #10b981;
  --primary-2: #22c55e;
  --secondary: #06b6d4;
  --accent: #facc15;
  --pink: #f472b6;
  --purple: #8b5cf6;
  --orange: #fb923c;

  --bg: #f8fafc;
  --bg-soft: #ecfeff;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --text: #102033;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --glass: rgba(255, 255, 255, 0.58);

  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

body.theme-ocean {
  --primary: #0284c7;
  --primary-2: #38bdf8;
  --secondary: #14b8a6;
  --accent: #a7f3d0;
  --pink: #60a5fa;
  --purple: #06b6d4;
  --orange: #f59e0b;
  --bg-soft: #eff6ff;
}

body.theme-sunset {
  --primary: #f97316;
  --primary-2: #fb7185;
  --secondary: #8b5cf6;
  --accent: #fde047;
  --pink: #ec4899;
  --purple: #a855f7;
  --orange: #fb923c;
  --bg-soft: #fff7ed;
}

body.dark {
  --bg: #030712;
  --bg-soft: #0f172a;
  --card: rgba(17, 24, 39, 0.72);
  --card-solid: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --glass: rgba(17, 24, 39, 0.58);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 30%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--secondary) 20%, transparent), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.26;
  background: radial-gradient(circle, var(--primary), transparent 68%);
  filter: blur(38px);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

/* Header */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  margin-top: 14px;
}

.nav-wrap {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-solid) 70%, transparent);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.18rem;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.16);
}

.theme-dot.is-active {
  border-color: var(--text);
  transform: scale(1.12);
}

.theme-green {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.theme-ocean {
  background: linear-gradient(135deg, #0284c7, #14b8a6);
}

.theme-sunset {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
}

/* Shared */
.section {
  padding: 96px 0;
}

.section-shell {
  position: relative;
  padding: 92px 0 0;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 0.83rem;
  text-transform: uppercase;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading.center .eyebrow {
  margin-inline: auto;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 30%, transparent);
}

.btn-glass {
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

/* Hero */
.hero {
  min-height: calc(100vh - 72px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  min-height: 690px;
}

.hero h1 {
  font-size: clamp(2.65rem, 6.6vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}

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

.hero-desc {
  max-width: 670px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
}

.hero-stats article {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.planet {
  width: min(520px, 95%);
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 32px 44px rgba(15, 23, 42, 0.18));
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--card-solid) 76%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  min-width: 160px;
  animation: float 4.5s ease-in-out infinite;
}

.floating-card span,
.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.floating-card strong {
  display: block;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1.2;
}

.card-air {
  left: 0;
  top: 110px;
}

.card-water {
  right: 10px;
  top: 230px;
  animation-delay: 0.4s;
}

.card-energy {
  left: 56px;
  bottom: 100px;
  animation-delay: 0.8s;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.62;
  animation: morph 8s ease-in-out infinite alternate;
}

.orb-one {
  width: 220px;
  height: 220px;
  top: 110px;
  left: 5%;
  background: color-mix(in srgb, var(--primary) 55%, transparent);
}

.orb-two {
  width: 280px;
  height: 280px;
  top: 160px;
  right: 9%;
  background: color-mix(in srgb, var(--secondary) 45%, transparent);
}

.orb-three {
  width: 160px;
  height: 160px;
  bottom: 110px;
  left: 46%;
  background: color-mix(in srgb, var(--pink) 45%, transparent);
}

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-solid) 60%, transparent);
  backdrop-filter: blur(18px);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 18px 0;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--secondary) 14%, transparent));
  color: var(--text);
  font-weight: 900;
}

/* Topics */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.topic-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: 0.24s ease;
}

.topic-card:hover {
  transform: translateY(-8px) rotate(-0.8deg);
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background: radial-gradient(circle at top right, var(--card-color), transparent 46%);
}

.topic-card > * {
  position: relative;
}

.topic-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: color-mix(in srgb, var(--card-color) 16%, transparent);
  color: var(--card-color);
  font-size: 1.8rem;
  margin-bottom: 28px;
}

.topic-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

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

/* Articles */
.article-section {
  position: relative;
}

.article-toolbar {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.search-box {
  width: min(520px, 100%);
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--card);
  backdrop-filter: blur(18px);
}

.search-box input,
.article-toolbar select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
}

.article-toolbar select {
  width: 230px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-solid);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: 0.24s ease;
}

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

.article-badge {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  font-size: 0.78rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.article-card h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.article-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.article-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.read-button {
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.empty-state {
  display: none;
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

/* Technology */
.tech-section {
  position: relative;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--secondary) 10%, transparent));
}

.tech-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 38px;
  align-items: center;
  margin-bottom: 38px;
}

.tech-showcase {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.tech-showcase img {
  width: min(520px, 95%);
  filter: drop-shadow(0 30px 35px rgba(15, 23, 42, 0.16));
  animation: float 5s ease-in-out infinite;
}

.pulse-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--primary) 48%, transparent);
  animation: pulse 2.5s ease-in-out infinite;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tech-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.tech-card .tech-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.tech-card h3 {
  margin-bottom: 8px;
}

.tech-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* IPAL */
.ipal-grid {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 24px;
  align-items: start;
}

.ipal-card {
  position: sticky;
  top: 112px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 95%, #052e16), color-mix(in srgb, var(--secondary) 90%, #083344));
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ipal-card p:not(.eyebrow) {
  color: rgba(255,255,255,0.84);
  margin-bottom: 18px;
}

.ipal-card .eyebrow {
  color: white;
  background: rgba(255,255,255,0.18);
}

.ipal-card img {
  margin-top: 24px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  text-align: left;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 20px;
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.timeline-item:hover,
.timeline-item.is-active {
  transform: translateX(8px);
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--secondary) 10%, transparent)),
    var(--card);
}

.timeline-item span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.timeline-item strong,
.timeline-item small {
  display: block;
}

.timeline-item small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 0.92rem;
}

/* Calculator */
.calculator-section {
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 34%),
    radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--pink) 18%, transparent), transparent 30%);
}

.calc-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.calc-card,
.contact-form,
.contact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.calc-card,
.contact-form {
  padding: 26px;
  display: grid;
  gap: 16px;
}

.calc-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.calc-card input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  outline: 0;
  border-radius: 18px;
  padding: 13px 15px;
  background: var(--card-solid);
  color: var(--text);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.calc-result {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--secondary) 14%, transparent));
  color: var(--text);
  font-weight: 800;
}

/* Contact */
.contact-section {
  padding-bottom: 112px;
}

.contact-panel {
  padding: 32px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--purple));
}

.contact-panel .eyebrow {
  color: white;
  background: rgba(255,255,255,0.18);
}

.contact-panel p {
  margin-top: 14px;
  color: rgba(255,255,255,0.84);
}

/* Footer */
.site-footer {
  color: white;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--primary) 40%, transparent), transparent 34%),
    linear-gradient(135deg, #02140f, #071827 54%, #111827);
  padding: 54px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255,255,255,0.72);
}

.footer-grid h3 {
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem;
}

/* Modal */
.article-modal {
  width: min(760px, calc(100% - 34px));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 0;
  background: var(--card-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}

.article-modal::backdrop {
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--card-solid) 84%, transparent);
}

.modal-body {
  padding: 32px;
}

.modal-body .article-badge {
  margin-bottom: 16px;
}

.modal-body h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.modal-body p {
  color: var(--muted);
  margin-bottom: 16px;
}

.modal-body ul {
  padding-left: 22px;
  color: var(--muted);
}

/* Utility */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
  display: none;
}

.back-to-top.show {
  display: grid;
  place-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.14s;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.82);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes morph {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -20px, 0) scale(1.12);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 1040px) {
  .nav-menu {
    position: absolute;
    top: 86px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--card-solid);
    box-shadow: var(--shadow);
  }

  .nav-menu.show {
    display: flex;
  }

  .menu-toggle {
    display: grid;
  }

  .hero-grid,
  .tech-layout,
  .ipal-grid,
  .calc-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 66px;
  }

  .ipal-card {
    position: relative;
    top: auto;
  }

  .tech-grid,
  .topic-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .nav-wrap {
    border-radius: 28px;
  }

  .brand {
    font-size: 1rem;
  }

  .theme-dot {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 16vw, 4rem);
  }

  .hero-stats,
  .tech-grid,
  .topic-grid,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .floating-card {
    min-width: 135px;
  }

  .card-air {
    left: 0;
    top: 70px;
  }

  .card-water {
    right: 0;
    top: 200px;
  }

  .card-energy {
    left: 20px;
    bottom: 46px;
  }

  .article-toolbar {
    flex-direction: column;
  }

  .article-toolbar select {
    width: 100%;
    min-height: 52px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }

  .cursor-glow {
    display: none;
  }
}
