/* ============================================================
   Interactive Utopia 2026 — Main Stylesheet
   Colors: cyan #1ed2f4 | accent #eafc40 | dark #2b2b3a
   Naming convention: snake_case throughout
   ============================================================ */

/* CSS variables — JS overrides these for dark mode */
:root {
  --bg_primary:     #f4f5f6;
  --bg_secondary:   #ffffff;
  --text_primary:   #333;
  --text_secondary: #666;
  --card_bg:        #f4f5f6;
  --border_color:   #e0e0e0;
  --header_bg:      #2b2b3a;
  --footer_bg:      #2b2b3a;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text_primary);
  background: var(--bg_primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  flex: 1;
}

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

ul {
  list-style: none;
}

/* ---- Typewriter cursor blink ---- */
@keyframes blink {
  0%, 49%   { border-right-color: #1ed2f4; }
  50%, 100% { border-right-color: transparent; }
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site_header {
  background: var(--header_bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.header_inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site_logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1ed2f4;
  text-decoration: none;
  flex-shrink: 0;
}

.site_nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site_nav a {
  color: #f4f5f6;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site_nav a:hover {
  color: #1ed2f4;
}

.nav_cta {
  background: #1ed2f4;
  color: #2b2b3a !important;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  transition: opacity 0.2s !important;
}

.nav_cta:hover {
  opacity: 0.85;
}

/* Dark mode toggle */
.dark_toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  user-select: none;
}

.toggle_sun,
.toggle_moon {
  font-size: 0.8rem;
}

.toggle_track {
  display: inline-block;
  width: 46px;
  height: 24px;
  background: #555;
  border-radius: 12px;
  position: relative;
  border: 1px solid #888;
  transition: background 0.3s, border-color 0.3s;
}

.toggle_knob {
  display: block;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

body.dark_mode .toggle_track {
  background: #1ed2f4;
  border-color: #1ed2f4;
}

body.dark_mode .toggle_knob {
  left: 24px;
}

/* Hamburger (mobile) */
.nav_hamburger {
  display: none;
  background: none;
  border: none;
  color: #f4f5f6;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #2b2b3a 0%, #254558 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero_inner {
  max-width: 900px;
  width: 100%;
}

.hero_location {
  font-size: 1.1rem;
  color: #1ed2f4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero_label {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}

.hero_typewriter_wrap {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero_typewriter {
  font-size: 3.2rem;
  font-weight: 700;
  color: #1ed2f4;
  border-right: 3px solid #1ed2f4;
  padding-right: 6px;
  white-space: nowrap;
  animation: blink 0.7s infinite;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.hero_description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero_actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn_primary {
  background: #1ed2f4;
  color: #2b2b3a;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn_primary:hover {
  opacity: 0.85;
}

.btn_outline {
  background: transparent;
  color: #1ed2f4;
  border: 2px solid #1ed2f4;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

.btn_outline:hover {
  background: #1ed2f4;
  color: #2b2b3a;
}

/* ============================================================
   VALUE PROPOSITION
   ============================================================ */
.value_prop {
  background: var(--bg_primary);
  padding: 4rem 2rem;
  border-bottom: 3px solid #1ed2f4;
  transition: background-color 0.3s ease;
}

.value_prop_inner {
  max-width: 1000px;
  margin: 0 auto;
}

.value_prop h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text_primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.value_prop_intro {
  font-size: 1.05rem;
  color: var(--text_secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.value_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value_card {
  background: var(--bg_secondary);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

body.dark_mode .value_card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.value_card__cyan   { border-left: 4px solid #1ed2f4; }
.value_card__yellow { border-left: 4px solid #eafc40; }
.value_card__dark   { border-left: 4px solid #254558; }

.value_card h3 {
  font-size: 1.2rem;
  color: var(--text_primary);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.value_card p {
  color: var(--text_secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background: var(--bg_secondary);
  padding: 5rem 2rem;
  transition: background-color 0.3s ease;
}

.services_inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section_header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section_header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text_primary);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.section_header p {
  font-size: 1.05rem;
  color: var(--text_secondary);
  max-width: 680px;
  margin: 0 auto;
  transition: color 0.3s ease;
}

/* AI banner */
.ai_banner {
  background: linear-gradient(135deg, #1ed2f4 0%, #254558 100%);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ai_banner_label {
  color: #eafc40;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.ai_banner h3 {
  color: white;
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ai_banner p {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  max-width: 500px;
  line-height: 1.6;
}

.btn_accent {
  background: #eafc40;
  color: #2b2b3a;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn_accent:hover {
  opacity: 0.88;
}

/* Service cards grid */
.services_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service_card {
  background: var(--card_bg);
  padding: 2rem;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.service_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 210, 244, 0.2);
}

.service_card_icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.service_card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text_primary);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.service_card p {
  color: var(--text_secondary);
  line-height: 1.6;
  font-size: 0.92rem;
  transition: color 0.3s ease;
}

/* NEW badge on AI cards */
.badge_new {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #eafc40;
  color: #2b2b3a;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   LATEST INSIGHTS
   ============================================================ */
.insights {
  background: var(--bg_primary);
  padding: 5rem 2rem;
  transition: background-color 0.3s ease;
}

.insights_inner {
  max-width: 1000px;
  margin: 0 auto;
}

.insights h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text_primary);
  margin-bottom: 3rem;
  transition: color 0.3s ease;
}

.articles_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article_card {
  background: var(--bg_secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

body.dark_mode .article_card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.article_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

body.dark_mode .article_card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.article_card_img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.article_card_img__1 { background: linear-gradient(135deg, #1ed2f4, #254558); }
.article_card_img__2 { background: linear-gradient(135deg, #eafc40, #1ed2f4); }
.article_card_img__3 { background: linear-gradient(135deg, #254558, #eafc40); }

.article_card_body {
  padding: 1.8rem;
}

.article_card_body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text_primary);
  margin-bottom: 0.7rem;
  transition: color 0.3s ease;
}

.article_card_body p {
  color: var(--text_secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}

.article_read_more {
  color: #1ed2f4;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.articles_cta {
  text-align: center;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta_section {
  background: linear-gradient(135deg, #1ed2f4, #254558);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

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

.cta_section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.cta_section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site_footer {
  background: var(--footer_bg);
  color: #f4f5f6;
  padding: 4rem 2rem 2rem;
  transition: background-color 0.3s ease;
}

.footer_inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer_cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer_col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1ed2f4;
  margin-bottom: 1.2rem;
}

.footer_col ul li {
  margin-bottom: 0.7rem;
}

.footer_col a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer_col a:hover {
  color: #1ed2f4;
}

.footer_social {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.footer_social a {
  color: #f4f5f6;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer_social a:hover {
  color: #1ed2f4;
}

.footer_privacy a {
  color: #1ed2f4;
  font-size: 0.88rem;
}

.footer_bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.8rem;
  text-align: center;
  color: #aaa;
  font-size: 0.88rem;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .hero_typewriter {
    font-size: 2rem;
  }

  .hero_typewriter_wrap {
    min-height: 80px;
  }

  .site_nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    background: var(--header_bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 99;
  }

  .site_nav.open {
    display: flex;
  }

  .nav_hamburger {
    display: block;
  }

  .header_inner {
    position: relative;
  }

  .ai_banner {
    flex-direction: column;
  }

  .section_header h2,
  .insights h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .cta_section h2 {
    font-size: 1.8rem;
  }
}
