/* =========================================================
   YouNick Energy | One-page site
   ========================================================= */

:root {
  --navy: #061031;
  --navy-2: #061031;
  --ink: #16304a;
  --muted: #5a6b7c;
  --accent: #00c46c;
  --accent-dark: #00a85e;
  --bright: #00e07c;
  --soft: #f4f8f6;
  --card: #ffffff;
  --line: rgba(6, 16, 49, 0.09);
  --gold: #ffc94d;
  --font-display: "Switzer", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(6, 16, 49, 0.12);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--card);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}

::selection {
  background: rgba(0, 196, 108, 0.25);
}

:focus-visible {
  outline: 3px solid rgba(0, 196, 108, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #052012;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 12px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

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

.narrow {
  max-width: 780px;
}

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ---------- Reveal (fail-safe: visible by default) ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}

html.anim [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0ms);
}

html.anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  html.anim [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(to bottom, rgba(6, 16, 49, 0.55), transparent);
}
.site-header.scrolled {
  background: rgba(6, 16, 49, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(6, 16, 49, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 30px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.nav-list a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--bright);
  transition: right 0.25s ease;
}
.nav-list a:hover,
.nav-list a.active {
  color: #fff;
}
.nav-list a:hover::after,
.nav-list a.active::after {
  right: 0;
}

.nav-cta {
  padding: 9px 18px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drop {
  position: relative;
}
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-drop-toggle .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.25s ease;
}
.nav-drop-toggle:hover,
.nav-drop.open .nav-drop-toggle {
  color: #fff;
}
.nav-drop.open .nav-drop-toggle .material-symbols-outlined {
  transform: rotate(180deg);
}
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #0d2240;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.nav-drop.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  white-space: nowrap;
}
.nav-drop-menu a::after {
  display: none;
}
.nav-drop-menu a:hover {
  background: rgba(0, 196, 108, 0.14);
  color: #fff;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover {
  background: #00b65f;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 196, 108, 0.32);
}
.btn:active {
  transform: translateY(0);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: #008249;
  border-color: rgba(0, 130, 73, 0.45);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(0, 196, 108, 0.08);
  border-color: #008249;
  box-shadow: none;
}
.btn-primary-inverse {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 196, 108, 0.28);
}
.btn-primary-inverse:hover {
  background: var(--bright);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 150px 0 100px;
  min-height: 100vh;
  display: flex;
  scroll-margin-top: 76px;
  background: url('../images/hero-image.jpg') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 49, 0.65);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.hero-copy {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 480px;
  padding-top: 6px;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 100%;
  margin-bottom: clamp(64px, 11vh, 120px);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  max-width: 500px;
  margin-bottom: 38px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Hero slider ---------- */
.hero-slider-wrap {
  position: relative;
}

.hero-slider {
  position: relative;
  aspect-ratio: 5 / 6;
  width: 100%;
  border-radius: 28px;
  border: 2px solid rgba(0, 196, 108, 0.5);
  box-shadow: 0 0 0 6px rgba(0, 196, 108, 0.08), 0 40px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bubble {
  position: absolute;
  width: 43%;
  height: auto;
  display: block;
  pointer-events: none;
}

.hero-bubble-tl {
  top: 30%;
  left: -6%;
}

.hero-bubble-br {
  bottom: 30%;
  right: -6%;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 104px 0;
  scroll-margin-top: 76px;
}
.section-soft {
  background: var(--soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #008249;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 18px;
}

.container.narrow {
  text-align: center;
}

.container > .eyebrow,
.container > .section-title,
.container > .section-lead {
  text-align: center;
}

.container.narrow > .section-lead {
  text-align: justify;
}

.mission {
  position: relative;
  max-width: 680px;
  margin: 48px auto 0;
  padding: 40px 48px 44px;
  background: linear-gradient(135deg, rgba(0, 196, 108, 0.1), rgba(0, 196, 108, 0.02));
  border: 1px solid rgba(0, 196, 108, 0.25);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(6, 16, 49, 0.08);
}

.mission p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.mission-mark {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  line-height: 0.6;
  height: 0.6em;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
  text-align: left;
}


/* =========================================================
   Solutions scene
   ========================================================= */
.solutions-scene {
  position: relative;
  max-width: 1080px;
  margin: 64px auto 72px;
  padding-top: 60px;
}

.scene-family {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 44px 70px rgba(6, 16, 49, 0.32));
}
.scene-family img {
  display: block;
  width: 100%;
  height: auto;
}

.scene-wash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  z-index: 3;
  background: radial-gradient(130% 100% at 50% 100%, rgba(6, 16, 49, 0.95) 30%, rgba(6, 16, 49, 0.55) 55%, rgba(6, 16, 49, 0) 78%);
  pointer-events: none;
}

.scene-glow {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 6%;
  bottom: 0;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(62% 62% at 50% 52%, rgba(255, 201, 77, 0.3), rgba(0, 196, 108, 0.14) 55%, transparent 76%);
  filter: blur(8px);
  pointer-events: none;
}

.bulb {
  position: absolute;
  top: -6px;
  z-index: 5;
  line-height: 0;
}
.bulb-left {
  left: 3%;
}
.bulb-right {
  right: 3%;
}

.sun-holder {
  position: absolute;
  top: -34px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  line-height: 0;
}

/* scene animation (gated on JS + in-view) */
html.anim .solutions-scene .bulb {
  opacity: 0;
  transform: translateY(-90px) rotate(-14deg);
}
html.anim .solutions-scene.lit .bulb {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
html.anim .solutions-scene.lit .bulb-left {
  transition-delay: 0.15s;
}
html.anim .solutions-scene.lit .bulb-right {
  transition-delay: 0.4s;
}
html.anim .solutions-scene.lit .bulb svg {
  transform-origin: 50% 12%;
  animation: bulb-sway 3.8s ease-in-out 1.2s infinite;
}
@keyframes bulb-sway {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

html.anim .solutions-scene .sun-holder {
  opacity: 0;
  transform: translateX(-50%) scale(0.4) rotate(-24deg);
}
html.anim .solutions-scene.lit .sun-holder {
  opacity: 1;
  transform: translateX(-50%) scale(1) rotate(0deg);
  transition: opacity 0.6s ease 0.85s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s;
}
html.anim .solutions-scene.lit .sun {
  animation: sun-wobble 5s ease-in-out 1s infinite;
  transform-origin: 50% 50%;
}
@keyframes sun-wobble {
  0%, 100% {
    transform: rotate(-5deg) scale(1);
  }
  50% {
    transform: rotate(5deg) scale(1.07);
  }
}

html.anim .solutions-scene .scene-glow {
  opacity: 0;
}
html.anim .solutions-scene.lit .scene-glow {
  opacity: 1;
  transition: opacity 1.4s ease 1.15s;
}

/* =========================================================
   Solutions cards
   ========================================================= */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 196, 108, 0.35);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 196, 108, 0.12);
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.card-icon .material-symbols-outlined {
  font-size: 26px;
}

.card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Journey band ---------- */
.journey-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(140deg, #061031, #061031);
  border-radius: 22px;
  padding: 34px 38px;
  color: #fff;
}
.journey-band p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  max-width: 640px;
  color: #fff;
}

/* =========================================================
   How it works
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 48px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(6, 16, 49, 0.28);
}

.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: rgba(0, 196, 108, 0.12);
  color: var(--accent-dark);
}
.step-icon .material-symbols-outlined {
  font-size: 28px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   App
   ========================================================= */
.app-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.app-copy .section-title,
.app-copy .section-lead {
  text-align: left;
  margin-inline: 0;
}

.app-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
  margin: 26px 0 28px;
}
.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
}
.app-features .material-symbols-outlined {
  font-size: 21px;
  color: var(--accent-dark);
}

.app-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 24px;
}

.app-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Phone mockup ---------- */
.phone {
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  border-radius: 40px;
  padding: 14px 14px 20px;
  background: linear-gradient(160deg, #061031, #061031);
  border: 1.5px solid rgba(0, 196, 108, 0.55);
  box-shadow: 0 30px 60px rgba(0, 196, 108, 0.32), 0 40px 80px rgba(6, 16, 49, 0.3);
  position: relative;
}
.phone-notch {
  width: 110px;
  height: 22px;
  margin: -6px auto 12px;
  background: #061031;
  border-radius: 0 0 14px 14px;
}
.phone-screen {
  background: #061031;
  border-radius: 26px;
  overflow: hidden;
}
.phone-shot {
  display: block;
  width: 100%;
  height: auto;
}
.phone-caption {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  margin-top: 12px;
}

/* ---------- API card ---------- */
.api-card {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(140deg, #061031, #061031);
  border-radius: 24px;
  padding: 44px 46px;
  color: #fff;
}
.api-card h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.api-card .eyebrow {
  color: var(--bright);
}
.api-card p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 18px;
}
.api-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 18px;
  margin-left: 12px;
}
.api-pill code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  color: #9fe8c5;
}
.api-badge {
  display: inline-block;
  vertical-align: middle;
  background: var(--bright);
  color: #052012;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.api-points {
  list-style: none;
  margin-bottom: 26px;
}
.api-points li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.96rem;
  margin-bottom: 8px;
}
.api-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bright);
}
.api-side {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}
.api-side .material-symbols-outlined {
  font-size: 74px;
  color: var(--bright);
  display: block;
  margin-bottom: 12px;
}
.api-side p {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0;
}

/* =========================================================
   Contact
   ========================================================= */
#contact .section-lead {
  margin-bottom: 48px;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin-bottom: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}
a.method:hover {
  border-color: rgba(0, 196, 108, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 16, 49, 0.08);
}
.method-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 196, 108, 0.1);
  color: var(--accent-dark);
}
.method-icon .material-symbols-outlined {
  font-size: 23px;
}
.method-icon svg {
  fill: var(--accent-dark);
}
.method-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}
.method-text small {
  color: var(--muted);
  font-size: 0.88rem;
}
.method-arrow {
  margin-left: auto;
  color: #a7b4c0;
  font-size: 20px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--card);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.socials a:hover {
  color: var(--accent-dark);
  border-color: rgba(0, 196, 108, 0.45);
  transform: translateY(-2px);
}

/* ---------- Form ---------- */
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(6, 16, 49, 0.07);
}
.contact-form button[type=submit]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.field {
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6b7c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 196, 108, 0.12);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

.form-success {
  background: var(--card);
  border: 1px solid rgba(0, 196, 108, 0.4);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: rgba(0, 196, 108, 0.12);
  color: var(--accent-dark);
}
.form-success h3 {
  margin-bottom: 8px;
}
.form-success p {
  color: var(--muted);
}

/* =========================================================
   Talk to Engineer YouNick (AI)
   ========================================================= */
.section-ai {
  background:
    radial-gradient(760px 380px at 8% 0%, rgba(0, 196, 108, 0.1), transparent 62%),
    linear-gradient(140deg, #061031 0%, #061031 100%);
}

.ai-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.ai-mascot {
  position: relative;
  display: flex;
  justify-content: center;
}
.ai-mascot img {
  width: 100%;
  max-width: 505px;
  height: auto;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.45));
  border-radius: 28px;
}

.ai-panel {
  color: #fff;
}
.ai-panel .eyebrow {
  color: var(--bright);
  background: rgba(0, 224, 124, 0.12);
}
.ai-panel .eyebrow::before {
  background: var(--bright);
}
.ai-panel .section-title {
  color: #fff;
  margin-bottom: 14px;
}
.ai-intro {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 30px;
}

.ai-chat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  min-height: 220px;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.ai-chat::-webkit-scrollbar {
  width: 8px;
}
.ai-chat::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.ai-msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.ai-msg p {
  color: inherit;
}
.ai-assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-left-radius: 4px;
  color: rgba(255, 255, 255, 0.92);
}
.ai-user {
  align-self: flex-end;
  background: var(--accent);
  border-bottom-right-radius: 4px;
  color: #04220f;
}
.ai-body {
  white-space: pre-line;
  color: inherit;
}
.ai-body p {
  margin: 0 0 8px;
}
.ai-body p:last-child {
  margin-bottom: 0;
}
.ai-body ul {
  margin: 4px 0 8px;
  padding-left: 20px;
}
.ai-body li {
  margin-bottom: 4px;
}
.ai-link {
  color: var(--bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-link:hover {
  color: #fff;
}
.ai-thinking {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}
.ai-thinking .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bright);
  animation: ai-blink 1.2s infinite alternate;
}
.ai-thinking .dot:nth-child(2) {
  animation-delay: 0.3s;
}
.ai-thinking .dot:nth-child(3) {
  animation-delay: 0.6s;
}
@keyframes ai-blink {
  0% { opacity: 0.25; }
  100% { opacity: 1; }
}

.ai-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ai-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ai-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.ai-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 196, 108, 0.18);
}
.ai-send {
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ai-send .material-symbols-outlined {
  font-size: 19px;
}
.ai-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  height: 62px;
  width: auto;
  margin-bottom: 18px;
}
.footer-brand p {
  max-width: 260px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer .socials a {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}
.site-footer .socials a:hover {
  color: var(--bright);
  border-color: rgba(0, 224, 124, 0.5);
}
.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--bright);
}
.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  background: url("images/background-image.webp") center / cover no-repeat;
    padding: 92px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: -20px 0 60px rgba(6, 16, 49, 0.4);
    z-index: 99;
  }
  body.nav-open .site-nav {
    transform: translateX(0);
  }
  body.nav-open {
    overflow: hidden;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 26px;
  }
  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-cta {
    justify-content: center;
  }
  .nav-drop {
    position: static;
  }
  .nav-drop-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-drop-menu {
    position: static;
    transform: none;
    min-width: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 6px 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .nav-drop.open .nav-drop-menu {
    display: block;
  }
  .nav-drop-menu a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-drop-menu a:hover {
    background: none;
  }
}

@media (max-width: 1020px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-split {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .api-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1020px) {
  .ai-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ai-mascot img {
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 104px 0 48px;
  }
  .hero-inner {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
  }
  .hero-copy {
    min-height: 0;
  }
  .hero-title {
    margin-bottom: 36px;
  }
  .hero-slider {
    aspect-ratio: 5 / 6;
  }
  .solutions-scene {
    margin: 48px auto 56px;
    padding-top: 44px;
  }
  .bulb svg {
    width: 64px;
    height: 80px;
  }
  .sun svg,
  .sun-holder svg {
    width: 84px;
    height: 84px;
  }
  .journey-band {
    padding: 28px 24px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 0;
  }
  .solutions-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .app-features {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .brand-logo {
    height: 23px;
  }
  .hero-title {
    letter-spacing: -0.015em;
  }
}

/* =========================================================
   Mobile refinements (mobile only; desktop untouched)
   ========================================================= */
@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1200px);
  }
  .hero {
    padding: 112px 0 40px;
    min-height: 0;
  }
  .hero-inner {
    gap: 18px;
  }
  .hero-title {
    font-size: clamp(1.25rem, 5.8vw, 1.75rem);
    margin-bottom: 18px;
    letter-spacing: -0.015em;
  }
  .hero-sub {
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.5;
  }
  .hero-ctas {
    gap: 8px;
  }
  .hero-ctas .btn {
    padding: 11px 16px;
    font-size: 13.5px;
  }
  .hero-slider {
    border-radius: 18px;
  }
  .hero-bubble {
    width: 40%;
  }
  .hero-bubble-tl {
    top: 30%;
    left: -8%;
  }
  .hero-bubble-br {
    bottom: 30%;
    right: -8%;
  }
  .section-title {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }
  .section-lead {
    font-size: 1.02rem;
  }
  .api-card {
    padding: 30px 22px;
    border-radius: 18px;
  }
  .api-side .material-symbols-outlined {
    font-size: 60px;
  }
  .contact-form {
    padding: 22px 18px;
  }
  .journey-band {
    padding: 28px 20px;
  }
  .solutions-scene {
    margin: 36px auto 48px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 96px 0 32px;
  }
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
  }
  .hero-title {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 0.85rem;
  }
  .hero-ctas .btn {
    padding: 10px 12px;
    font-size: 12.5px;
  }
  .hero-bubble {
    width: 45%;
  }
  .hero-bubble-tl {
    left: -10%;
  }
  .hero-bubble-br {
    right: -10%;
  }
  .ai-form input {
    padding: 12px 14px;
  }
  .ai-send {
    padding: 12px 14px;
  }
  .ai-chat {
    padding: 14px;
  }
  .footer-grid {
    gap: 30px;
  }
}

/* =========================================================
   Community popup
   ========================================================= */
.community-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: 340px;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.community-popup.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.community-popup-inner {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(6, 16, 49, 0.22);
  border: 1px solid rgba(6, 16, 49, 0.06);
}

.community-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(6, 16, 49, 0.06);
  color: var(--navy);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.community-popup-close:hover {
  background: var(--accent);
  color: #fff;
}

.community-popup-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 196, 108, 0.14);
  color: #008249;
  margin-bottom: 16px;
}

.community-popup h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.community-popup p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

