﻿/* ── CSS Reset ───────────────────────────────────────── */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
}

/* Base body defaults */
html, body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Media elements behave predictably */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Form elements inherit fonts */
input,
button,
textarea,
select {
  font: inherit;
}

/* Prevent long text overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Remove default anchor styling */
a {
  text-decoration: none;
  color: inherit;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Improve scrolling behavior */
html {
  scroll-behavior: smooth;
}


/* ── Variables ── */
:root {
  --accent: #25669b;
  --accent-glow: rgba(61, 169, 255, 0.25);
  --bg: #121b22;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text: #e6eef8;
  --muted: #8a96a8;
  --surface: #181c20;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 14px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  --mouse-x: 50%;
  --mouse-y: 50%;
  user-select: none;
}

/* Mouse-following spotlight */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(61, 169, 255, 0.06) 0%,
    transparent 100%
  );
  transition: background 0.15s ease;
}

/* Ensure all page content sits above the spotlight */
main, .lightbox, .site-footer {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  background: rgba(0, 0, 0, 0.01); /* Ensure transparency for backdrop-filter */
}

/* ── Header ── */
.site-header {
  position: fixed; /* always fixed - avoids sticky quirks */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* high so nothing covers it */
  background: rgba(15, 18, 21, 0.2);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* allow logo svg to scale gracefully */
.logo svg { display: block; height: 80px; width: auto; }

/* Desktop nav visible by default, mobile nav hidden */
.nav-desktop { display: flex; }
.nav-mobile { display: none; }

@media (max-width: 720px) {
  .nav-desktop { display: none !important; }
  .nav-mobile { display: flex; }
}

.nav a {
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav .btn {
  background: linear-gradient(-250deg,
    #25669b 0%,
    #3da9ff 15%,
    #a78bfa 100%
  );
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: transform 0.15s, box-shadow 0.2s;
}


.nav .btn:hover {
  /* keep gradient but darken slightly by overlaying semi-transparent black */
  background: linear-gradient(-250deg,
    rgba(37,102,155,0.85) 0%,
    rgba(61,169,255,0.85) 15%,
    rgba(167,139,250,0.85) 100%
  );
  box-shadow: 0 6px 20px var(--accent-glow);
}


/* ── Hero ── */
.hero {
  padding: 5rem 0 0;
  text-align: center;
  position: relative;
  margin-top:60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-heading {
  text-align: center !important;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero h1 .gradient-text {

  background-image: linear-gradient(
    -250deg,
    #9A9AE3 0%,
    #9A9AE3 4%,
    #00c9e5 15%,
    #f58220 80%,
    #9A9AE3 96%,
    #9A9AE3 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textclip 4s linear infinite;
}

@keyframes textclip {
  0%   { background-position: 0% center; }
  50%  { background-position: 200% center; }
  100% { background-position: 0% center; }
}

@keyframes bg-slide {
  0%   { background-position: 0% center; }
  50%  { background-position: 200% center; }
  100% { background-position: 0% center; }
}

.hero > div > p,
.hero-inner > p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* ── Subscribe Form ── */
.subscribe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.subscribe-form input {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}

.subscribe-form input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.subscribe-form input[name="name"] { max-width: 160px; }
.subscribe-form input[name="email"] { min-width: 220px; }
.subscribe-form input:focus {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--accent);
  box-shadow: 0 0 22px var(--accent-glow);
  outline: none;
  animation: input-glow 1s ease-out forwards;
}

/* fade-in animation used by inputs */
@keyframes input-glow {
  from {
    box-shadow: 0 0 0 var(--accent-glow);
    border-color: transparent;
  }
  to {
    box-shadow: 0 0 22px var(--accent-glow);
    border-color: var(--accent);
  }
}

.subscribe-form .cta {
  padding: 0.65rem 1.4rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cta {
  display: inline-block;
  background: linear-gradient(-250deg,
    #25669b 0%,
    #3da9ff 50%,
    #a78bfa 100%
  );  background-size: 200% auto;  background-position: 0% center;
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-position 0.8s ease, transform 0.15s, box-shadow 0.2s;
}

.cta:hover {
  /* keep same gradient but darken via filter; allow position shift animation */
  filter: brightness(0.85);
  background-position: 100% center;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.subscribe-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* ── Section shared ── */
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}

.section-note {
  text-align: center;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  font-size: 0.85rem;
  font-style: italic;
}

/* ── Gallery / Carousel ── */
.gallery {
  padding: 4rem 0 2rem;
}

.slick-carousel {
  max-width: 800px;
  margin: 0 auto;
}

.slick-list {
  border-radius: var(--radius);
  overflow: hidden;
}

.slick-slide { outline: none; }

.slick-slide > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slick-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.slide-caption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
  max-width: 90%;
  opacity: 0.85;
}

.slick-slide img:hover { transform: scale(1.02); }

/* Slick arrows */
.slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.slick-arrow:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.08);
}

.slick-arrow::before { display: none; }
.slick-prev { left: 16px; }
.slick-next { right: 16px; }

/* Slick dots */
.slick-dots {
  bottom: -36px;
  display: flex !important;
  justify-content: center;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.slick-dots li { margin: 0; }

.slick-dots li button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  font-size: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slick-dots li button::before { display: none; }

.slick-dots li.slick-active button {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── Features ── */
.features { padding: 4rem 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.feature:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.feature-header {
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 36px;
  max-width: 36px;
  border-radius: 8px;
  background: rgba(61,169,255,0.1);
  flex-shrink: 0;
  margin-bottom: 10px;
}

.feature h3, .feature p {
  text-align: center;
  width: 100%;
}

.feature h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

/* ── About ── */
.about {
  padding: 4rem 0 3rem;
  text-align: center;
}

.about p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 85vh;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1);
}

.lightbox.open .lightbox-content { transform: scale(1); }

.lightbox-img {
  max-width: min(80vw, 900px);
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s 0.05s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox.open .lightbox-img { opacity: 1; }

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev,
.lightbox-next {
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.15); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero { padding: 3.5rem 0 2rem; margin-top:auto; }
  .features-grid { grid-template-columns: 1fr; }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }

  .subscribe-form input[name="name"],
  .subscribe-form input[name="email"] {
    min-width: 0;
    max-width: none;
  }

  .slick-carousel { max-width: 100%; }
  .logo img { height: 60px; }
}

/* hamburger menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 720px) {
.hamburger {
  display: block;
  position: fixed;
  left: 1rem;
  top: 0.9rem;
  z-index: 1001;
}
.site-header {
  /* remains fixed from base rule */
  /* display: flex; */
}

/* carousel background decorative pseudo can stay */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 300px !important;
  max-height: 300px !important;
  pointer-events: none;
  z-index: 0;
}

html {
  overflow-x: hidden;
}

main {
  margin-top:80px;
}

/* fallback fixed state applied via JS when scrollY > 0 */
.site-header.fixed {
  position: fixed !important;
  left: 0; right: 0;
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
  .logo { margin: 0; }
  .nav-mobile {
    position: fixed; /* cover viewport instead of being confined to header */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;
    align-items: center; /* center links horizontally */
    justify-content: flex-start;
    gap: 1rem;
    padding: 100px 1rem 0; /* top + horizontal padding */

    background: rgba(0, 0, 0, 0.55);

    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;

    z-index: 900;
  }

  .nav-mobile a,
  .nav-mobile .btn {
    font-size: 1.15rem;
    padding: 0.7rem 1.8rem;
    color: var(--text);
    position:relative;
    top:20%;
  }

  .nav-mobile.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* status modal (used for hash-based messages) */
.status-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
}
.status-modal.show { display: flex; }
.status-modal-content {
  background: var(--surface);
  color: var(--text);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  max-width: 90%;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.status-modal-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}
.status-modal-content button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.status-modal-content button:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* iOS-specific tweaks – targets mobile Safari/WebKit only */
@media (pointer: coarse) and (hover: none) and (-webkit-overflow-scrolling: touch) {
  .site-header { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  html, body { overflow-x: hidden; }
}
