/* -------- Tokens -------- */
:root{
  --bg-dark: #0b0e17;
  --bg-darker: #070a12;
  --text: #e8eef7;
  --muted: #aab3c2;
  --brand: #25D366;
  --brand-600:#1da851;
  --brand-700:#0fa457;
  --card: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.18);
  --glow: rgba(37,211,102,0.35);
  --radius: 16px;
  --maxw: 1160px;
  --gap: clamp(16px, 2vw, 28px);
}

/* -------- Reset -------- */
*,
*::before,
*::after{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -20%, #142238 0%, transparent 60%), var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* -------- Background Layers -------- */
.bg{ position: fixed; inset: 0; z-index:-2; overflow:hidden; }
.mesh{
  position:absolute; inset:-20%;
  background:
    radial-gradient(40% 60% at 20% 10%, rgba(37,211,102,0.12), transparent 60%),
    radial-gradient(35% 55% at 80% 20%, rgba(61,104,255,0.12), transparent 60%),
    radial-gradient(50% 70% at 50% 80%, rgba(255,99,189,0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
  filter: saturate(110%) blur(0.2px);
  transform: translateZ(0);
}
.blob{
  position:absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(37,211,102,0.5), rgba(37,211,102,0.06) 60%, transparent 70%);
  filter: blur(30px);
  mix-blend-mode: screen;
  transition: transform .25s ease;
}
.blob-1{ top:10%; left:-120px; }
.blob-2{ top:50%; right:-160px; background: radial-gradient(circle at 70% 40%, rgba(93,135,255,0.5), rgba(93,135,255,0.06) 60%, transparent 70%); }
.blob-3{ bottom:-140px; left:40%; background: radial-gradient(circle at 40% 60%, rgba(255,99,189,0.45), rgba(255,99,189,0.06) 60%, transparent 70%); }
.noise{
  position:absolute; inset:-100px; pointer-events:none; opacity:.06; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* -------- Utilities -------- */
.container{ max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(16px, 3vw, 28px); }
h1,h2,h3{ line-height:1.2; letter-spacing:-0.02em; }
h1{ font-size: clamp(22px, 1.4vw + 18px, 30px); }
h2{ font-size: clamp(28px, 3.2vw + 12px, 48px); }
h3{ font-size: clamp(18px, 1vw + 14px, 24px); }
p, blockquote{ color: var(--muted); }

/* -------- Glassmorphism -------- */
.glass{
  background: var(--card);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--stroke);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 20px 60px rgba(0,0,0,0.35);
  border-radius: var(--radius);
}

/* -------- Header -------- */
.site-header{
  position: sticky; top: 12px; margin: 12px auto; z-index: 50;
  display:flex; align-items:center; justify-content: space-between;
  padding: 12px clamp(14px, 2.4vw, 22px);
  width: min(100% - 24px, var(--maxw));
}
.site-header h1{ margin:0; }
.site-nav{ display:flex; gap: clamp(10px, 1.8vw, 22px); }
.site-nav a{
  color: var(--text); text-decoration: none; font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.site-nav a:hover{ color: var(--brand); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset; }
.site-nav a:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }

/* -------- Hero -------- */
.hero{ position: relative; padding: clamp(64px, 10vw, 120px) 0; }
.hero-inner{ max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(16px, 3vw, 28px); text-align: center; }
.hero p{ max-width: 760px; margin: 10px auto 24px; }

/* CTAs */
.cta{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration:none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.cta.neon{
  background: var(--brand); color:#07110c;
  box-shadow: 0 0 0 2px rgba(37,211,102,0.18) inset, 0 10px 30px var(--glow), 0 0 24px rgba(37,211,102,0.25);
}
.cta.neon:hover{ transform: translateY(-2px); background: var(--brand-600); box-shadow: 0 0 0 2px rgba(37,211,102,0.22) inset, 0 14px 36px var(--glow), 0 0 28px rgba(37,211,102,0.32); }
.cta.outline{
  color: var(--text); background: transparent; border: 1.5px solid rgba(255,255,255,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.cta.outline:hover{ background: rgba(255,255,255,0.06); color: var(--text); }

/* -------- Bento Features -------- */
.features{ padding: clamp(48px, 8vw, 80px) 0; }
.bento{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  width: min(100% - 24px, var(--maxw));
  margin: 0 auto;
}
.card{
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease;
  will-change: transform;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.card h3{ margin-top: 0; }

/* Auto-flow bento (simple uniform cards) */
.card:nth-child(1){ grid-column: span 6; }
.card:nth-child(2){ grid-column: span 6; }
.card:nth-child(3){ grid-column: span 4; }
.card:nth-child(4){ grid-column: span 4; }
.card:nth-child(5){ grid-column: span 4; }

@media (max-width: 900px){
  .card{ grid-column: span 12 !important; }
}




/* Tilt hover (subtle 3D) */
.tilt{ transform-style: preserve-3d; }
.tilt:hover{ transform: perspective(800px) rotateX(1.5deg) rotateY(-1.2deg) translateY(-6px); }

/* -------- Testimonials -------- */
.testimonials{
  width: min(100% - 24px, var(--maxw));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 70px) 0;
  display: grid; gap: var(--gap);
}
.testimonials blockquote{
  margin: 0; padding: clamp(16px, 2.2vw, 24px);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
}

/* -------- Contact + Map -------- */
.contact{
  text-align: center;
  width: min(100% - 24px, var(--maxw));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) 0;
}
.contact h3{ margin-top:0; }
.contact-actions{ display:flex; gap: var(--gap); justify-content:center; flex-wrap: wrap; margin: 18px 0 28px; }
.map{ width: 100%; height: 340px; border: none; border-radius: var(--radius); }

/* -------- Footer -------- */
.site-footer{
  width: min(100% - 24px, var(--maxw));
  margin: 0 auto 24px;
  padding: 16px;
  text-align: center;
}

/* -------- Accessibility -------- */
a:focus-visible, .cta:focus-visible{
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 12px;
}

/* 7-card layout refinement */
@media (min-width: 901px){
  .bento .card:nth-child(1){ grid-column: span 4; }
  .bento .card:nth-child(2){ grid-column: span 4; }
  .bento .card:nth-child(3){ grid-column: span 4; }
  .bento .card:nth-child(4){ grid-column: span 3; }
  .bento .card:nth-child(5){ grid-column: span 3; }
  .bento .card:nth-child(6){ grid-column: span 3; }
  .bento .card:nth-child(7){ grid-column: span 3; }
}


/* Responsive map aligned to container */
.map-wrap{
  position: relative;
  width: min(100%, var(--maxw));
  margin: 0 auto;
  /* 16:9 by default; tweak via media query below */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.map-wrap .map{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* Slightly taller map on very small screens */
@media (max-width: 480px){
  .map-wrap{ aspect-ratio: 4 / 3; }
}

/* Safety guard if any element tries to bleed horizontally */
html, body{ overflow-x: hidden; }


/* Contact section spacing */
.contact{ padding: clamp(32px, 6vw, 64px) 0; }

/* Panel for heading + actions */
.contact-panel{
  width: min(100%, var(--maxw));
  margin: 0 auto clamp(12px, 2vw, 16px);
  padding: clamp(14px, 2.5vw, 22px);
  border-radius: var(--radius);
}

/* Contact actions: robust icon alignment */
.contact-actions{
  display: flex;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}
.contact-actions .cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  line-height: 1;          /* prevents emoji clipping */
  min-height: 40px;        /* room for icons */
  border-radius: 12px;
}
.contact-actions .icon{
  font-size: 1.1rem;       /* control emoji size */
  display: inline-block;
  line-height: 1;
}

/* Map container (already added previously) */
.map-wrap{
  position: relative;
  width: min(100%, var(--maxw));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}
.map-wrap .map{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* Slightly taller map on small screens */
@media (max-width: 480px){
  .map-wrap{ aspect-ratio: 4 / 3; }
}
