﻿:root {
  --bg: #fdfdfd;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #f1f5f9;
  --accent: #111827;
  --accent-soft: #f8fafc;
  --primary: #0f956c;
  --primary-dark: #0a6b4d;
  --primary-light: #14b87f;
  --primary-glow: rgba(15, 149, 108, 0.2);
  --primary-soft: rgba(15, 149, 108, 0.1);
  --emerald: #0f956c;
  --emerald-dark: #0a6b4d;
  --gold: #0f956c;
  --gold-glow: rgba(15, 149, 108, 0.2);
  --slate-900: #0f172a;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(15, 23, 42, 0.08);
  /* Soft slate border */
  --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-xxl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0;
  background: linear-gradient(180deg, rgba(253, 253, 253, 0.95) 0%, rgba(253, 253, 253, 0.85) 100%);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(15, 149, 108, 0.08);
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.site-nav.scrolled .brand-logo {
  height: 40px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: serif;
}

.brand-text {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.brand-dot {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.btn-emerald {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-emerald:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
}

.menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border: 1px solid transparent;
  border-radius: 4px;
  /* Sharper corners for luxe look */
  padding: 1rem 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-dark {
  background: var(--accent);
  color: #fff;
}

.btn-dark:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-light {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-light:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn.wide {
  width: 100%;
  border-radius: 4px;
  padding: 1.2rem;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 4.5rem;
}

.hero-bg,
.hero-bg img,
.hero-bg>div {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 10s ease-out;
}

.hero.active .hero-bg img {
  transform: scale(1);
}

.overlay-soft {
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(1px);
}

.overlay-gradient {
  background: linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72), rgba(255, 255, 255, .15));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.pill {
  display: inline-block;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--line);
  color: var(--accent-soft);
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  /* Lighter weight for luxe elegancy */
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero h1 span {
  font-style: italic;
  color: var(--accent);
  border-bottom: 2px solid var(--primary);
}

.hero p {
  max-width: 620px;
  color: #334155;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.2rem;
}

.arrow {
  transition: transform .2s ease;
}

.btn-dark:hover .arrow {
  transform: translateX(4px);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
}

.scroll-indicator div {
  width: 4px;
  height: 3rem;
  border-radius: 999px;
  background: linear-gradient(#0f956c, transparent);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.section {
  padding: 6rem 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.section-white {
  background: #fff;
}

.section-slate {
  background: #f8fafc;
}

.section-mint {
  background: linear-gradient(180deg, rgba(15, 149, 108, .07), rgba(255, 255, 255, 0));
}

.intro h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin: 0 0 .8rem;
}

.intro p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.intro.center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .65rem;
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.tile {
  background: var(--glass);
  padding: 2.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.feature-card:hover::before,
.tile:hover::before {
  transform: translateX(100%);
}

.feature-card:hover,
.tile:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15), 0 0 15px var(--primary-glow);
}

.feature-card h3,
.tile h3 {
  margin: .2rem 0 .55rem;
}

.feature-card p,
.tile p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 0.8rem;
}

.icon-box.emerald {
  background: var(--line);
  color: var(--accent);
}

.icon-box.blue {
  background: var(--line);
  color: var(--accent);
}

.icon-box.amber {
  background: var(--line);
  color: var(--primary);
}

.icon-box.red {
  background: var(--line);
  color: var(--accent);
}

.demo-shell {
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 3fr 2fr;
  min-height: 700px;
}

.demo-left {
  position: relative;
  background: #f8fafc;
  padding: 1rem;
}

.visual-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.visual-container:hover .premium-visual {
  transform: scale(1.05);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.4), transparent);
  pointer-events: none;
}

.glass {
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
}

.status-card {
  position: absolute;
  top: 2rem;
  left: 2rem;
  padding: .9rem 1rem;
  border-radius: 1.2rem;
  z-index: 3;
}

.status-card h3 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.status-card p {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.status-dot {
  width: .52rem;
  height: .52rem;
  border-radius: 999px;
  background: #cbd5e1;
  animation: pulse 1.6s infinite;
}

.status-dot.on {
  background: var(--emerald);
}



.demo-right {
  padding: 3rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  background: #fafafa;
}

.demo-right h4 {
  margin: .2rem 0 1.5rem;
  color: #94a3b8;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.device-grid {
  display: grid;
  gap: .8rem;
}

.control-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.control-card.active-light {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 10px 30px var(--primary-glow);
}

.control-card.active-blinds {
  border-color: var(--accent);
  background: #fff;
}

.control-card.active-heating {
  border-color: var(--accent);
  background: #fff;
}

.control-card.active-alarm {
  border-color: #ef4444;
  background: #fff;
}

.control-card.active-music {
  border-color: var(--accent);
  background: #fff;
}

.control-card.static {
  background: #fff;
  border: 1px solid var(--line);
}

.control-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.control-meta {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.control-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .9rem;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #64748b;
  transition: .3s ease;
}

.control-icon.green {
  background: #10b981;
  color: #fff;
}

.control-icon.glow {
  background: var(--primary);
  color: #fff;
}

.control-icon.alert {
  background: #ef4444;
  color: #fff;
}

.control-icon.music-on {
  background: #10b981;
  color: #fff;
}

.control-meta h5 {
  margin: 0;
  font-size: 1.03rem;
}

.control-meta p {
  margin: .25rem 0 0;
  font-size: .72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}

.switch {
  border: 0;
  width: 3.5rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: .25s ease;
}

.switch span {
  position: absolute;
  left: .2rem;
  top: .2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(2, 6, 23, .18);
  transition: .25s ease;
}

.switch.on {
  background: var(--primary);
}

.switch.on span {
  left: 1.9rem;
}

.switch.heat-on {
  background: var(--accent);
}

.switch.heat-on span {
  left: 1.9rem;
}

.dim-wrap {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: .35s ease;
}

.dim-wrap.show {
  margin-top: .8rem;
  opacity: 1;
  max-height: 6rem;
}

.dim-wrap>div:first-child {
  display: flex;
  justify-content: space-between;
  color: #d97706;
  font-size: .65rem;
  text-transform: uppercase;
  font-weight: 800;
}

.progress {
  margin-top: .35rem;
  height: .5rem;
  background: rgba(251, 191, 36, .2);
  border-radius: 999px;
}

.progress div {
  width: 85%;
  height: 100%;
  border-radius: inherit;
  background: #fbbf24;
}

.temp-box {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid #e2e8f0;
  border-radius: .9rem;
  background: #fff;
  padding: .35rem;
}

.temp-box button {
  border: 0;
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  background: #f8fafc;
  font-weight: 800;
}

.temp-box span {
  width: 3.2rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
}

.temp-box-wrap {
  margin-top: .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.temp-box-wrap>span {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  font-weight: 800;
}

.btn-mini {
  border: 0;
  border-radius: .7rem;
  background: #f1f5f9;
  color: #475569;
  padding: .52rem .75rem;
  font-size: .74rem;
  font-weight: 800;
}

.btn-mini.active {
  background: #3b82f6;
  color: #fff;
}

#alarm-toggle.active {
  background: #ef4444;
  color: #fff;
}

#music-toggle.active {
  background: var(--accent);
  color: #fff;
}

#music-volume {
  accent-color: var(--accent);
}

.energy-card {
  background: #000000;
  color: #fff;
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.energy-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: var(--primary-soft);
  filter: blur(24px);
}

.energy-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.energy-top h5 {
  margin: 0;
  font-size: 1rem;
}

.energy-top p {
  margin: .2rem 0 0;
  color: #94a3b8;
  font-size: .72rem;
}

.energy-top strong {
  color: var(--primary);
  font-size: 1.8rem;
}

.energy-top small {
  display: block;
  text-transform: uppercase;
  font-size: .62rem;
  color: #64748b;
  font-weight: 700;
  text-align: right;
}

#energy-chart {
  width: 100%;
  height: auto;
  display: block;
  margin-top: .8rem;
  position: relative;
  z-index: 2;
}

.ghost-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .15);
  background: transparent;
  color: rgba(255, 255, 255, .8);
  border-radius: 1rem;
  padding: .72rem .7rem;
  margin-top: .8rem;
  font-size: .75rem;
  font-weight: 700;
}

.split {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.split .region {
  color: var(--emerald-dark);
  font-weight: 800;
  margin-bottom: .4rem;
}

.text-link {
  color: var(--emerald-dark);
  font-weight: 800;
  border: 0;
  background: none;
}

.text-link:hover {
  text-decoration: underline;
}

.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.project-card .img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 480px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .img-wrap {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.tag {
  position: absolute;
  left: .9rem;
  top: .9rem;
  background: rgba(255, 255, 255, .9);
  padding: .35rem .65rem;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 1.1rem;
  color: #fff;
  font-size: .85rem;
  background: linear-gradient(0deg, rgba(15, 23, 42, .8), transparent);
  opacity: 0;
  transition: .3s ease;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.btn-detail {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-detail:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.project-card h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.contact-shell {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xxl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-left {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 4.2rem);
}

.contact-left h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.contact-left p {
  color: #d1fae5;
  line-height: 1.8;
}

.contact-left ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-left li {
  display: flex;
  gap: .8rem;
  align-items: center;
}

.contact-left li>span {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .9rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
}

.contact-left small {
  color: #d1fae5;
  display: block;
  margin-top: .2rem;
}

.contact-right {
  padding: clamp(1.4rem, 4vw, 4rem);
}

#contact-form {
  display: grid;
  gap: 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: .84rem .9rem;
  background: #f8fafc;
  font: inherit;
  font-size: .95rem;
  color: #0f172a;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-glow);
  border-color: var(--primary);
}

.contact-success {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.ok {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  display: grid;
  place-items: center;
  font-size: 1rem;
  margin-inline: auto;
}

.contact-success h3 {
  margin-bottom: .5rem;
}

.contact-success p {
  color: var(--muted);
  max-width: 32ch;
}

.footer {
  background: #fff;
  border-top: 1px solid #f1f5f9;
  padding: 4.5rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 2.8rem;
}

.footer-grid h4 {
  margin: 0 0 .8rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  display: block;
  margin: .35rem 0;
  font-size: .9rem;
}

.footer-grid a:hover {
  color: var(--primary-dark);
}

.socials {
  display: flex;
  gap: .6rem;
  margin-top: .9rem;
}

.socials a {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  font-size: .72rem;
  font-weight: 800;
  margin: 0;
}

.newsletter {
  display: flex;
}

.newsletter input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.newsletter button {
  border: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 0 1rem;
  border-radius: 0 1rem 1rem 0;
}

.footer-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 1.3rem;
  font-size: .8rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom div {
  display: flex;
  gap: 1rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-content h1 {
  animation: slideUpFade 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:nth-child(2) {
  transition-delay: 0.2s;
}

.project-card:nth-child(3) {
  transition-delay: 0.4s;
}

.section-white {
  background: var(--bg);
  position: relative;
}

.intro h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.sites-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Responsive Design - Mobile First Approach */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1100px) {
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Experience section refinements */
  .demo-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .demo-left {
    min-height: 400px;
  }

  .demo-right {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Tablets (1024px and below) */
@media (max-width: 1024px) {
  .container {
    width: calc(100% - 3rem);
  }

  .hero-content {
    max-width: 100%;
  }

  .card-grid.two {
    grid-template-columns: 1fr;
  }
}

/* Medium Tablets (860px and below) */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 100%;
    margin-top: .7rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow);
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .scroll-indicator {
    display: none;
  }

  .card-grid.three,
  .card-grid.four,
  .project-grid,
  .contact-shell,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-right {
    padding: 2rem 1.5rem;
  }

  .status-card {
    position: static;
    margin: .6rem;
  }

  .visual-container {
    min-height: 350px;
  }

  .hero {
    min-height: 80vh;
    padding-top: 6rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile Devices (640px and below) */
@media (max-width: 640px) {
  .container {
    width: calc(100% - 2rem);
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .intro h2 {
    font-size: 1.75rem;
  }

  .card-grid {
    gap: 1rem;
  }

  .feature-card,
  .tile {
    padding: 1.5rem;
  }

  .contact-left,
  .contact-right {
    padding: 2rem 1.5rem;
  }

  .demo-right {
    padding: 1rem;
  }

  .device-grid {
    gap: 0.6rem;
  }

  .control-card {
    padding: 1rem;
  }

  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .project-card .img-wrap {
    height: 300px;
  }
}

/* Small Mobile (375px and below) */
@media (max-width: 375px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.7rem;
  }

  .contact-left,
  .contact-right {
    padding: 1.5rem 1rem;
  }
}

/* --- Premium Refinements --- */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  filter: blur(100px);
  opacity: 0.1;
  border-radius: 50%;
  animation: blob-float 25s infinite ease-in-out;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: var(--gold);
  top: -15%;
  right: -10%;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  bottom: -5%;
  left: -15%;
  animation-delay: -7s;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: #60a5fa;
  top: 35%;
  left: 25%;
  animation-delay: -12s;
}

@keyframes blob-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -60px) scale(1.15);
  }

  66% {
    transform: translate(-30px, 20px) scale(0.9);
  }
}

.hero h1 span {
  color: var(--accent);
  background: linear-gradient(120deg, var(--primary-glow) 0%, var(--primary-glow) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 88%;
  border-bottom: none;
}

.btn-emerald {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-emerald:hover {
  background: transparent;
  color: var(--accent);
}

.section-slate {
  background: #f8fafc;
}

/* Light Mode Glassmorphism Overrides */
.status-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  color: var(--text) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.control-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.control-card.active-light {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 10px 40px var(--primary-glow);
}