/* ═══════════════════════════════════════════════
   ICEDEWS LABS — SHARED STYLESHEET
   ═══════════════════════════════════════════════ */

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

:root {
  --ice-1: #e0f7ff;
  --ice-2: #b3ecff;
  --ice-3: #5dcaf9;
  --ice-4: #0da8e8;
  --ice-5: #0078b5;
  --ice-6: #004f7c;
  --dew-1: #e8fff4;
  --dew-2: #9fecd3;
  --dew-3: #3dd6a8;
  --dark:   #050d18;
  --dark-2: #0b1828;
  --dark-3: #0f2035;
  --dark-4: #153050;
  --text-p: #cce9f8;
  --text-s: #7ab3d1;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text-p);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* GRID BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,168,232,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,168,232,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(5,13,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(93,202,249,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--ice-3); }

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-s);
  text-decoration: none;
  letter-spacing: 0.3px;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--ice-3); background: rgba(93,202,249,0.06); }
.nav-links a.active { color: var(--ice-3); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--ice-4) !important;
  color: var(--ice-3) !important;
  padding: 0.4rem 1.1rem !important;
  border-radius: 50px !important;
}
.nav-cta:hover { background: var(--ice-4) !important; color: #fff !important; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-s);
  border-radius: 2px;
  transition: all 0.3s;
}

/* MOBILE NAV DRAWER */
.mobile-nav {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: rgba(5,13,24,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(93,202,249,0.1);
  padding: 1.5rem 5%;
  z-index: 99;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav a {
  color: var(--text-s);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(93,202,249,0.06);
  display: block;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--ice-3); }
.mobile-nav.open { display: flex; }

/* ── PAGE HERO ── */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 10rem 5% 6rem;
  text-align: center;
  overflow: hidden;
}

.page-hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(13,168,232,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,168,232,0.1);
  border: 1px solid rgba(13,168,232,0.25);
  color: var(--ice-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--dew-3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.0;
  animation: fadeUp 0.6s 0.1s ease both;
}

.page-hero h1 .accent { color: var(--ice-3); }
.page-hero h1 .accent-g { color: var(--dew-3); }

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-s);
  max-width: 580px;
  margin: 1.5rem auto 0;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* ── SECTIONS ── */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ice-3);
  margin-bottom: 0.7rem;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
}
h2 .accent { color: var(--ice-3); }
h2 .accent-g { color: var(--dew-3); }

.section-desc {
  font-size: 1rem;
  color: var(--text-s);
  max-width: 540px;
  margin-top: 0.8rem;
  font-weight: 300;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ice-4);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--ice-5); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text-p);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--ice-3); transform: translateY(-2px); }

/* DIVIDER */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(93,202,249,0.2), transparent);
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(93,202,249,0.07);
  padding: 4rem 5% 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1300px;
  margin: 4rem auto 0;
}

.footer-brand p { font-size: 0.86rem; color: var(--text-s); margin-top: 0.8rem; max-width: 260px; }

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.84rem; color: var(--text-s); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--ice-3); }

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem;
  color: var(--text-s);
  position: relative;
  z-index: 1;
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--text-s); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--ice-3); }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-social a {
  width: 32px; height: 32px;
  background: rgba(13,168,232,0.08);
  border: 1px solid rgba(93,202,249,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 0.78rem;
  color: var(--text-s);
  transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--ice-3); color: var(--ice-3); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.crystal { animation: spin-slow 12s linear infinite; transform-origin: center; }
.floating { animation: float 5s ease-in-out infinite; }

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--dark-2);
  border: 1px solid rgba(93,202,249,0.08);
  border-radius: 18px;
  padding: 2rem;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ice-4), var(--dew-3));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.card:hover { border-color: rgba(93,202,249,0.2); background: var(--dark-3); transform: translateY(-4px); }
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 46px; height: 46px;
  background: rgba(13,168,232,0.1);
  border: 1px solid rgba(13,168,232,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card p { font-size: 0.88rem; color: var(--text-s); line-height: 1.65; }

/* CTA BANNER */
.cta-banner {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border: 1px solid rgba(93,202,249,0.15);
  border-radius: 24px;
  padding: 4.5rem 5%;
  text-align: center;
  margin: 0 5% 5rem;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(13,168,232,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 0.8rem; }
.cta-banner p { color: var(--text-s); max-width: 480px; margin: 0 auto 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* RESPONSIVE */
@media (max-width: 900px) {
  footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  footer { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero { padding: 8rem 5% 4rem; }
}
