/* ==========================================================================
   POLIXNEO ROBOTICS — Design system (base)
   Bright & sunny: warm white, sunny yellow, navy ink, friendly teal.
   Made simple and readable for students.
   ========================================================================== */

:root {
  --bg:        #fffdf7;
  --bg-soft:   #fff6e2;
  --surface:   #ffffff;
  --surface-2: #fff8ec;
  --line:   rgba(30, 34, 51, 0.10);
  --line-2: rgba(30, 34, 51, 0.16);

  --ink:   #1e2233;
  --ink-2: #5a6178;
  --ink-3: #9aa0b2;

  --yellow:      #ffc525;
  --yellow-deep: #f59e0b;
  --yellow-soft: #fff1c2;
  --teal:        #14c2b2;
  --teal-soft:   #d6f6f1;
  --coral:       #ff6b5e;
  --coral-soft:  #ffe2de;

  --grad: linear-gradient(120deg, #ffd23f, #ff9f1c);

  --ring: rgba(245, 158, 11, 0.45);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --pill: 999px;

  --sh-1: 0 2px 6px rgba(30, 34, 51, 0.06);
  --sh-2: 0 10px 28px rgba(30, 34, 51, 0.10);
  --sh-3: 0 26px 60px rgba(30, 34, 51, 0.14);
  --sh-pop: 0 14px 30px -8px rgba(255, 159, 28, 0.5);

  --nav-h: 76px;
  --maxw: 1200px;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --ease: cubic-bezier(0.34, 1.4, 0.5, 1); /* gentle overshoot */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

/* Soft sunny ambience */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(820px 520px at 88% -10%, rgba(255, 197, 37, 0.22), transparent 60%),
    radial-gradient(680px 520px at 0% 6%, rgba(20, 194, 178, 0.12), transparent 55%),
    radial-gradient(700px 600px at 50% 116%, rgba(255, 107, 94, 0.08), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
.ic { display: inline-block; vertical-align: middle; flex: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: 96px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

/* Friendly chip-style eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--yellow-deep);
  background: var(--yellow-soft);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 7px 14px;
  border-radius: var(--pill);
}
.eyebrow .ic { width: 16px; height: 16px; }
.eyebrow--teal { color: #0f9b8e; background: var(--teal-soft); border-color: rgba(20, 194, 178, 0.25); }

.lead { color: var(--ink-2); font-size: 1.1rem; }

.head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 18px 0 14px; }
.head p { color: var(--ink-2); font-size: 1.08rem; }

/* ----------------------------------------------------------- Buttons ----- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn .ic { width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn:hover .ic-shift { transform: translateX(4px); }

.btn-primary {
  color: var(--ink);
  background-image: var(--grad);
  box-shadow: var(--sh-pop);
}
.btn-primary:hover { box-shadow: 0 20px 44px -10px rgba(255, 159, 28, 0.65); }

.btn-teal { color: #fff; background: var(--teal); box-shadow: 0 12px 26px -10px rgba(20, 194, 178, 0.6); }
.btn-teal:hover { box-shadow: 0 18px 36px -10px rgba(20, 194, 178, 0.7); }

.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--sh-1); }
.btn-outline:hover { border-color: var(--ink); }

.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ----------------------------------------------------------- Tags -------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.tag .ic { width: 16px; height: 16px; color: var(--ink-3); }

.level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--pill);
}
.level--easy   { color: #0f9b8e; background: var(--teal-soft); }
.level--medium { color: var(--yellow-deep); background: var(--yellow-soft); }
.level--pro    { color: #d84a3d; background: var(--coral-soft); }

/* ----------------------------------------------------------- Navbar ------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled { background: rgba(255, 253, 247, 0.85); backdrop-filter: blur(14px); box-shadow: var(--sh-1); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .logomark { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__sub { font-family: var(--font-display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow-deep); align-self: flex-start; margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { padding: 9px 15px; border-radius: var(--pill); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-2); transition: color 0.2s, background 0.2s; }
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); cursor: pointer; }
.nav__toggle .ic { width: 22px; height: 22px; }

/* ----------------------------------------------------------- Footer ------ */
.footer { background: var(--ink); color: #fff; padding: 64px 0 36px; margin-top: 30px; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: var(--yellow); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: rgba(255, 255, 255, 0.7); max-width: 300px; margin-top: 16px; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.08); color: #fff; transition: all 0.25s var(--ease); }
.footer__social a:hover { background: var(--yellow); color: var(--ink); transform: translateY(-3px); }
.footer__social .ic { width: 19px; height: 19px; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 14px; color: #fff; }
.footer__col a { display: block; color: rgba(255, 255, 255, 0.7); padding: 6px 0; font-weight: 600; transition: color 0.2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }

/* ----------------------------------------------------- Order modal ------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(30, 34, 51, 0.5); backdrop-filter: blur(4px); animation: fade 0.25s ease; }
.modal__card { position: relative; width: min(440px, 100%); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 30px; text-align: center; animation: popin 0.35s var(--ease); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.modal__close:hover { background: var(--coral-soft); color: var(--coral); }
.modal__close .ic { width: 18px; height: 18px; }
.modal__art { width: 92px; height: 92px; margin: 4px auto 18px; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--yellow-soft); color: var(--yellow-deep); }
.modal__art .ic { width: 48px; height: 48px; }
.modal__card h3 { font-size: 1.5rem; }
.modal__price { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--yellow-deep); margin: 6px 0; }
.modal__card p { color: var(--ink-2); margin: 10px 0 24px; }
.modal__actions { display: flex; flex-direction: column; gap: 10px; }
.modal__success .modal__art { background: var(--teal-soft); color: var(--teal); }

/* ----------------------------------------------------- Motion utils ------ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes pop { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes popin { 0% { transform: scale(0.9) translateY(10px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------- Responsive -- */
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: var(--surface); box-shadow: var(--sh-2); transform: translateY(-135%); transition: transform 0.35s var(--ease-soft); }
  .nav__links.open { transform: translateY(0); }
  .nav__links a:not(.btn) { padding: 14px 16px; }
  .nav__cta { margin: 8px 0 0; }
  .section { padding: 70px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
