/* =========================================================
   CreativeKidsCode — Stylesheet
   Palette:
     --navy        #0B0F1F  (deep background / hero / footer)
     --navy-panel  #141A33  (raised dark panels)
     --teal        #00D4B8  (primary accent — AI / tech)
     --coral       #FF6B4A  (CTA / warmth accent)
     --bg          #F7F8FB  (page background)
     --ink         #14182B  (body text)
     --ink-soft    #5B6178  (secondary text)
     --line        #E6E8F0  (borders)
   Type:
     Display  -> 'Sora'            (headings)
     Body     -> 'Inter'            (paragraphs, UI)
     Mono     -> 'JetBrains Mono'   (eyebrows / code accents)
   ========================================================= */

:root {
  --navy: #0B0F1F;
  --navy-panel: #141A33;
  --teal: #00D4B8;
  --coral: #FF6B4A;
  --bg: #F7F8FB;
  --ink: #14182B;
  --ink-soft: #5B6178;
  --line: #E6E8F0;
  --white: #FFFFFF;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(11, 15, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 15, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 15, 31, 0.18);

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--coral);
  margin-bottom: 14px;
  text-transform: lowercase;
}

.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--navy);
}

.section-title.center { text-align: center; }

.section-text {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 640px;
  margin-bottom: 14px;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .section-text { margin: 0 auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-cta {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.35);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 107, 74, 0.45); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 15, 31, 0.55);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 15, 31, 0.92);
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo-bracket { color: var(--teal); }

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--teal); }

.nav-cta { margin-left: 28px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://picsum.photos/seed/ckc-hero/1800/1100');
  background-size: cover;
  background-position: center;
  /* Replace the URL above with your own photo of a tutor + learners working with AI software */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,31,0.88) 0%, rgba(11,15,31,0.78) 45%, rgba(11,15,31,0.93) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.18;
  color: var(--white);
  max-width: 880px;
  margin-bottom: 22px;
}

.text-accent { color: var(--teal); }
.text-accent-alt { color: var(--coral); }

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--teal);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 180px;
}

/* ============ SECTION SPACING ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--white); }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img { aspect-ratio: 7/8; object-fit: cover; width: 100%; }

.about-image-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(11, 15, 31, 0.85);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.about-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}

.check {
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.service-image { height: 200px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }

.service-body { padding: 28px; }

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 10px 0 12px;
  color: var(--navy);
}

.service-body p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.service-points { display: flex; flex-direction: column; gap: 8px; }

.service-points li {
  font-size: 0.88rem;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}

.service-points li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---- Product showcase (mock app windows) ---- */
.product-showcase { margin-top: 16px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.product-card {
  background: var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.product-card:hover { transform: translateY(-4px); }

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--navy-panel);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.window-bar .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.window-bar .dot:nth-child(1) { background: var(--coral); }
.window-bar .dot:nth-child(2) { background: #FFC857; }
.window-bar .dot:nth-child(3) { background: var(--teal); }

.window-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

.window-body { padding: 22px 18px 26px; }

.window-body h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 10px;
}

.window-body p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ============ WHY CHOOSE US ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.why-card:hover { transform: translateY(-4px); border-color: var(--teal); }

.why-icon {
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.why-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--line);
}

.stars {
  color: var(--coral);
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.quote {
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.65;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.testimonial-card footer strong {
  font-family: var(--font-display);
  color: var(--navy);
}

.testimonial-card footer span { color: var(--ink-soft); }

/* ============ CONTACT ============ */
.contact-section {
  background: var(--navy);
}

.contact-section .eyebrow { color: var(--teal); }
.contact-section .section-title { color: var(--white); }
.contact-section .section-text { color: rgba(255,255,255,0.65); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-details li span:last-child {
  color: rgba(255,255,255,0.85);
  font-size: 0.96rem;
}

.contact-details a:hover { color: var(--teal); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-row input,
.form-row textarea,
.form-row select {
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--teal);
  outline: none;
}

.form-row textarea { resize: vertical; }

.form-submit { width: 100%; margin-top: 6px; }

.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status.success { color: #0E9F6E; }
.form-status.error { color: var(--coral); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--teal); }

.footer-contact p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.footer-contact a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .about-image { max-width: 420px; margin: 0 auto 12px; }

  .services-grid,
  .why-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .product-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(11, 15, 31, 0.97);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.is-open { max-height: 320px; }

  .main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
  }

  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { padding-top: 120px; }
  .hero-stats { gap: 28px; }

  .services-grid,
  .why-grid,
  .testimonials-grid,
  .product-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; }

  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
