/* ==========================================================================
   NEMOLINGUA — Nemo-themed stylesheet
   Palette sampled directly from the Nemo character artwork.
   Drop-in: link this file and apply the classes below to your markup.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */
/* Fredoka = round, friendly display (matches the chunky "NEMO" lettering)
   Nunito  = warm, legible body                                              */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Nemo's fur — the brand orange */
  --nemo-orange:        #E87C24;   /* primary brand */
  --nemo-orange-deep:   #AD4810;   /* shadows / hover */
  --nemo-orange-soft:   #E8A967;   /* light fur */
  --nemo-cream:         #F6E6CF;   /* belly / page warmth */
  --nemo-cream-bg:      #FBF3E7;   /* page background */

  /* The "NEMO" logotype navy + accents from the speech bubbles */
  --nemo-navy:          #213744;   /* headings / ink */
  --nemo-navy-soft:     #3A5566;
  --nemo-sky:           #57AACE;   /* friendly blue bubble */
  --nemo-red:           #D8472B;   /* bandana red */
  --nemo-green:         #7FB23C;   /* "Cześć!" green bubble */
  --nemo-yellow:        #F2B530;   /* sticky-note yellow */

  /* Semantic roles */
  --bg:            var(--nemo-cream-bg);
  --surface:       #FFFFFF;
  --surface-warm:  var(--nemo-cream);
  --ink:           var(--nemo-navy);
  --ink-soft:      var(--nemo-navy-soft);
  --brand:         var(--nemo-orange);
  --brand-deep:    var(--nemo-orange-deep);
  --accent:        var(--nemo-sky);

  /* Shape & depth */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(33,55,68,.08);
  --shadow-md: 0 10px 24px rgba(173,72,16,.14);
  --shadow-lg: 0 18px 44px rgba(33,55,68,.16);
  --ring: 0 0 0 4px rgba(232,124,36,.28);

  --maxw: 1120px;
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

/* ---- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  /* soft warm "paper" texture using layered radial glows */
  background-image:
    radial-gradient(900px 500px at 88% -8%, rgba(232,169,103,.35), transparent 60%),
    radial-gradient(700px 500px at -6% 12%, rgba(87,170,206,.16), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, rgba(127,178,60,.10), transparent 60%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }

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

/* ---- Header / nav ------------------------------------------------------- */
.nm-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  background: rgba(251,243,231,.82);
  backdrop-filter: blur(10px);
}
.nm-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--ink);
}
.nm-brand .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--nemo-orange-soft), var(--nemo-orange-deep));
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.18);
  display: grid; place-items: center; color:#fff; font-size: 15px;
}
.nm-nav-actions { display: flex; align-items: center; gap: 14px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: var(--r-pill);
  border: none; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--nemo-orange) 0%, var(--nemo-orange-deep) 100%);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { color:#fff; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 2px solid rgba(33,55,68,.18);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-lg { padding: 16px 32px; font-size: 1.15rem; }

/* ---- Hero --------------------------------------------------------------- */
.nm-hero { padding: 48px 0 40px; }
.nm-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center;
}
.nm-hero-copy { text-align: left; }
.nm-hero-art { position: relative; }
.nm-hero-art img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  transform: rotate(1.5deg);
}
.nm-hero-art::after {
  content: "🐾"; position: absolute; top: -16px; left: -16px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--nemo-yellow); display: grid; place-items: center;
  font-size: 26px; box-shadow: var(--shadow-md); transform: rotate(-12deg);
  z-index: 2;
}
@media (max-width: 860px){
  .nm-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .nm-hero-copy { text-align: center; }
  .nm-hero-art { max-width: 420px; margin: 8px auto 0; }
}
.nm-eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  color: var(--brand-deep); background: rgba(232,124,36,.14);
  padding: 6px 16px; border-radius: var(--r-pill);
  font-size: .95rem; margin-bottom: 18px;
}
.nm-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700;
  letter-spacing: -.02em;
}
.nm-hero h1 .accent { color: var(--brand); }
.nm-hero .lede {
  max-width: 520px; margin: 8px 0 28px;
  font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: var(--ink-soft); font-weight: 600;
}
.nm-hero-copy.center .lede { margin-left: auto; margin-right: auto; }
.nm-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.nm-hero-copy.center .nm-hero-cta { justify-content: center; }
.nm-hero-note { margin-top: 14px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }

/* floating speech-bubble greetings around the hero */
.nm-bubbles { position: relative; height: 0; }
.nm-bubble {
  position: absolute; font-family: var(--font-display); font-weight: 600;
  padding: 8px 16px; border-radius: 18px 18px 18px 4px; color:#fff;
  box-shadow: var(--shadow-sm); animation: floaty 5s ease-in-out infinite;
}
.nm-bubble.b1 { background: var(--nemo-sky);    left: 1%;  top: -24px; }
.nm-bubble.b2 { background: var(--nemo-green);  left: 5%;  top: 150px; animation-delay: .8s; }
.nm-bubble.b3 { background: var(--nemo-yellow); right: 2%; top: -24px;  color: var(--nemo-navy); animation-delay: 1.4s; }
.nm-bubble.b4 { background: var(--nemo-red);    right: 6%; top: 150px; animation-delay: 2s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-9px) } }
@media (max-width: 760px){ .nm-bubble { display:none; } }

/* ---- The "math" strip --------------------------------------------------- */
.nm-math {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin: 36px auto 0; max-width: 760px;
  font-family: var(--font-display); font-size: clamp(1.1rem,3vw,1.6rem); font-weight: 600;
}
.nm-chip {
  background: var(--surface); border: 2px solid rgba(232,124,36,.25);
  border-radius: var(--r-md); padding: 10px 18px; box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.nm-chip strong { color: var(--brand-deep); }
.nm-op { color: var(--accent); font-size: 1.4em; }
.nm-chip.result {
  background: linear-gradient(180deg, var(--nemo-orange) 0%, var(--nemo-orange-deep) 100%);
  color:#fff; border-color: transparent; box-shadow: var(--shadow-md);
}

/* ---- Sections ----------------------------------------------------------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; font-weight: 600; }

/* ---- Feature cards ------------------------------------------------------ */
.nm-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.nm-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(33,55,68,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative; overflow: hidden;
}
.nm-card::before {
  content:""; position:absolute; inset:0 0 auto 0; height:5px;
  background: var(--card-accent, var(--brand));
}
.nm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.nm-card .ico {
  width: 56px; height: 56px; border-radius: var(--r-md); margin-bottom: 16px;
  display: grid; place-items: center; font-size: 28px;
  background: var(--card-accent-soft, rgba(232,124,36,.14));
}
.nm-card h3 { font-size: 1.3rem; }
.nm-card .big {
  font-family: var(--font-display); font-weight: 700; font-size: 2.2rem;
  color: var(--card-accent, var(--brand-deep)); line-height: 1; margin-bottom: 6px;
}
.nm-card p { color: var(--ink-soft); margin: 0; }

/* accent variants — rotate Nemo's palette across cards */
.nm-card.c-orange { --card-accent: var(--nemo-orange-deep); --card-accent-soft: rgba(232,124,36,.15); }
.nm-card.c-sky    { --card-accent: var(--nemo-sky);         --card-accent-soft: rgba(87,170,206,.18); }
.nm-card.c-green  { --card-accent: var(--nemo-green);       --card-accent-soft: rgba(127,178,60,.18); }
.nm-card.c-yellow { --card-accent: #C8920F;                --card-accent-soft: rgba(242,181,48,.20); }
.nm-card.c-red    { --card-accent: var(--nemo-red);        --card-accent-soft: rgba(216,71,43,.15); }

/* ---- Language grid ------------------------------------------------------ */
.nm-langs {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.nm-lang {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid rgba(33,55,68,.08);
  border-radius: var(--r-pill); padding: 10px 16px; font-weight: 700;
  box-shadow: var(--shadow-sm); transition: transform .14s, border-color .14s, background .14s;
  cursor: pointer;
}
.nm-lang:hover { transform: translateY(-3px); border-color: var(--brand); background: var(--surface-warm); }
.nm-lang .flag { font-size: 1.3rem; }

/* ---- Pricing / CTA band ------------------------------------------------- */
.nm-cta {
  text-align: center; color: #fff; border-radius: var(--r-lg);
  padding: 56px 28px; margin: 24px auto; max-width: var(--maxw);
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(160deg, var(--nemo-orange) 0%, var(--nemo-orange-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.nm-cta h2 { color:#fff; font-size: clamp(1.8rem,5vw,3rem); }
.nm-cta p { color: rgba(255,255,255,.92); font-weight: 600; font-size: 1.1rem; }
.nm-cta .price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  display:inline-block; margin-top:18px; background: rgba(255,255,255,.18);
  padding: 8px 18px; border-radius: var(--r-pill);
}
.nm-cta .btn-primary {
  background: #fff; color: var(--brand-deep);
}
.nm-cta .btn-primary:hover { color: var(--brand-deep); background:#fff; }

/* ---- Split image band (image + copy side by side) ---------------------- */
.nm-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.nm-split.reverse .nm-split-art { order: 2; }
.nm-split-art img {
  width: 100%; height: auto; display: block; border-radius: var(--r-lg);
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.nm-split-copy h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.nm-split-copy p { color: var(--ink-soft); font-size: 1.1rem; font-weight: 600; }
.nm-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.nm-steps li {
  display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem;
}
.nm-steps .num {
  width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-family: var(--font-display);
}
.nm-steps li:nth-child(1) .num { background: var(--nemo-sky); }
.nm-steps li:nth-child(2) .num { background: var(--nemo-green); }
.nm-steps li:nth-child(3) .num { background: var(--nemo-orange); }
@media (max-width: 760px){
  .nm-split { grid-template-columns: 1fr; gap: 24px; }
  .nm-split.reverse .nm-split-art { order: 0; }
}

/* ---- Principles (numbered layered list) -------------------------------- */
.nm-principles { display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
.nm-principle {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--surface); border-radius: var(--r-lg); padding: 24px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(33,55,68,.06);
}
.nm-principle .layer {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  width: 64px; height: 64px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; color: #fff; line-height: 1;
}
.nm-principle:nth-child(1) .layer { background: linear-gradient(180deg,var(--nemo-sky),#3E8AAE); }
.nm-principle:nth-child(2) .layer { background: linear-gradient(180deg,var(--nemo-orange),var(--nemo-orange-deep)); }
.nm-principle:nth-child(3) .layer { background: linear-gradient(180deg,var(--nemo-green),#5C8A26); }
.nm-principle h3 { font-size: 1.25rem; margin-bottom: 4px; }
.nm-principle p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.nm-principle .tag {
  display: inline-block; font-family: var(--font-display); font-size: .8rem;
  font-weight: 600; padding: 2px 12px; border-radius: var(--r-pill); margin-bottom: 8px;
  background: rgba(232,124,36,.14); color: var(--brand-deep);
}

/* ---- Use-case cards (simplicity wins) ---------------------------------- */
.nm-usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nm-usecase {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(33,55,68,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nm-usecase:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.nm-usecase img { width: 100%; height: auto; display: block; }
.nm-usecase .body { padding: 22px 24px 26px; }
.nm-usecase h3 { font-size: 1.25rem; margin-bottom: 6px; }
.nm-usecase p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.nm-usecase .say {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  background: var(--surface-warm); color: var(--brand-deep);
  padding: 6px 14px; border-radius: 14px 14px 14px 4px; margin-bottom: 12px;
  border: 1px solid rgba(232,124,36,.2);
}
@media (max-width: 760px){ .nm-usecases { grid-template-columns: 1fr; } }

/* ---- Footer ------------------------------------------------------------- */
.nm-footer {
  text-align: center; color: var(--ink-soft); font-weight: 600;
  padding: 40px 24px 56px; font-size: .95rem;
}

/* ---- App-level form inputs ---------------------------------------------- */
.nm-input {
  width: 100%; padding: 12px 16px;
  background: var(--surface); border: 1.5px solid rgba(33,55,68,.15);
  border-radius: var(--r-sm); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.nm-input::placeholder { color: var(--ink-soft); opacity: .4; }
.nm-input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

/* App card surfaces (white cards on cream bg) */
.nm-app-card {
  background: var(--surface);
  border: 1px solid rgba(33,55,68,.08);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .18s;
}
.nm-app-card:hover {
  border-color: rgba(33,55,68,.15);
}

/* Progress bar track */
.nm-progress-track {
  width: 100%; height: 6px;
  background: rgba(33,55,68,.1);
  border-radius: var(--r-pill); overflow: hidden;
}
.nm-progress-track.thin { height: 4px; }
.nm-progress-bar {
  height: 100%; border-radius: var(--r-pill);
  transition: width .5s ease;
}
.nm-progress-bar.orange { background: var(--nemo-orange); }
.nm-progress-bar.green { background: var(--nemo-green); }

/* Review input (quiz mode) */
.nm-review-input {
  width: 100%; padding: 12px 16px;
  background: var(--surface); border: 2px solid rgba(33,55,68,.12);
  border-radius: var(--r-sm); color: var(--ink);
  font-family: var(--font-body); font-size: 1.1rem;
  text-align: center; transition: border-color .2s, background .2s;
}
.nm-review-input:focus { outline: none; border-color: var(--nemo-green); }
.nm-review-input.correct { border-color: var(--nemo-green); background: rgba(127,178,60,.08); }
.nm-review-input.wrong { border-color: var(--nemo-red); background: rgba(216,71,43,.08); }

/* ---- Reveal-on-load stagger -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .6s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){
  .reveal, .nm-bubble { animation: none; opacity:1; transform:none; }
}
