/* ==========================================================
   TurtIL Wiki - styles

   PALETTE (derived from the logo)
   --forest-700 (#285414) is the exact green of the logo
   background. The logo mark is white. Every other color is a
   darker / lighter tint of that same green, plus a fresh
   lime accent for buttons and highlights.
   ========================================================== */

:root {
  /* Greens */
  --forest-950: #0e2007;
  --forest-900: #16300b;
  --forest-800: #1e410f;
  --forest-700: #285414; /* logo green */
  --forest-600: #34701a;
  --forest-500: #458f24;
  --leaf-400:   #6ec13b;
  --lime-300:   #a9e86d; /* accent */
  --lime-200:   #cef4a6;
  --mint-100:   #e7f6d8;
  --mint-50:    #f4faee; /* page background */

  /* Text */
  --ink:        #10200a;
  --ink-soft:   #44563b;
  --line:       rgba(40, 84, 20, .14);

  /* Shape + depth */
  --radius:     22px;
  --shadow-sm:  0 1px 2px rgba(16, 32, 10, .06), 0 6px 18px rgba(16, 32, 10, .05);
  --shadow-md:  0 18px 40px -14px rgba(16, 40, 8, .28);
  --shadow-lg:  0 40px 80px -24px rgba(0, 0, 0, .55);

  --maxw: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Subtle hexagon texture (nod to the turtle shell) */
  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--mint-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

:focus-visible { outline: 3px solid var(--leaf-400); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--lime-300); color: var(--forest-950);
  padding: .6rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 48, 11, .72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(14, 32, 7, .92);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
}
.brand-mark { width: 36px; height: 36px; color: #fff; }

.nav-menu { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: .5rem 1rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  color: rgba(255, 255, 255, .78);
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-menu a.is-active { color: var(--forest-950); background: var(--lime-300); }

.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary {
  background: var(--lime-300); color: var(--forest-950);
  box-shadow: 0 12px 28px -10px rgba(169, 232, 109, .75);
}
.btn-primary:hover { background: var(--lime-200); transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero / introduction ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(64px, 9vw, 120px) 0 clamp(84px, 11vw, 140px);
  border-radius: 0 0 56px 56px;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(110, 193, 59, .35), transparent 60%),
    radial-gradient(700px 480px at -5% 105%, rgba(169, 232, 109, .16), transparent 60%),
    linear-gradient(160deg, var(--forest-700) 0%, var(--forest-900) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hex-pattern); background-size: 56px 98px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .95rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime-200);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-300); box-shadow: 0 0 0 4px rgba(169, 232, 109, .25); }

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 6rem); line-height: 1; letter-spacing: -.045em;
  font-weight: 800; margin: 1.2rem 0 1rem;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--lime-300), #e9ffcb);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--lime-200); margin-bottom: 1rem; }
.lead { max-width: 56ch; font-size: 1.1rem; color: rgba(255, 255, 255, .82); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-art { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 232, 109, .45), transparent 68%);
  filter: blur(30px);
}
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.ring-1 { inset: -2%; }
.ring-2 { inset: -12%; border-style: dashed; border-color: rgba(255, 255, 255, .08); animation: spin 60s linear infinite; }
.art-card {
  position: relative; width: 80%; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: float 7s ease-in-out infinite;
}
.art-mark { width: 74%; height: 74%; color: #fff; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest-500);
}
.kicker::before {
  content: ""; width: 12px; height: 13px; background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.kicker-light { color: var(--lime-300); }

h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em;
  font-weight: 800; color: var(--forest-800); margin: .6rem 0 0;
}
h3 { letter-spacing: -.01em; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.75rem; align-items: start; }
.prose p { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.infobox { padding: 0; overflow: hidden; }
.infobox-head {
  display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--forest-700), var(--forest-800));
}
.infobox-head svg { width: 40px; height: 40px; color: #fff; }
.infobox-head h3 { margin: 0; font-size: 1.1rem; }
.infobox dl { margin: 0; padding: .4rem 1.5rem 1rem; }
.infobox .row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.infobox .row:last-child { border-bottom: 0; }
.infobox dt { font-weight: 700; font-size: .9rem; color: var(--forest-700); }
.infobox dd { margin: 0; text-align: right; font-size: .95rem; color: var(--ink-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.75rem; margin-top: 1.75rem; }
.feature { transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(69, 143, 36, .45); }
.feature h3 { font-size: 1.2rem; color: var(--forest-800); margin-bottom: .5rem; }
.feature p { margin: 0; color: var(--ink-soft); }

.hex-icon {
  width: 58px; height: 64px; display: grid; place-items: center; margin-bottom: 1.25rem;
  color: var(--lime-300);
  background: linear-gradient(145deg, var(--forest-600), var(--forest-800));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-icon .icon { width: 26px; height: 26px; }

/* ---------- Demo video ---------- */
.section-dark {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 56px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(110, 193, 59, .22), transparent 70%),
    linear-gradient(180deg, var(--forest-800), var(--forest-950));
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; background-image: var(--hex-pattern); background-size: 56px 98px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--lime-300); }

.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 28px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(110, 193, 59, .25), transparent 70%), var(--forest-800);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255, 255, 255, .04);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.2rem; text-align: center; padding: 1.5rem; }
.video-wm { position: absolute; right: -6%; bottom: -14%; width: 52%; height: auto; aspect-ratio: 1; color: #fff; opacity: .06; }
.play {
  position: relative; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%;
  background: var(--lime-300); color: var(--forest-950);
  box-shadow: 0 0 0 12px rgba(169, 232, 109, .18), 0 0 0 28px rgba(169, 232, 109, .08);
  animation: pulse 2.8s ease-in-out infinite;
}
.play .icon { width: 34px; height: 34px; margin-left: 4px; }
.video-note { margin: 0; font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; color: var(--lime-200); }

/* ---------- Feedback ---------- */
.feedback-card {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(1.25rem, 4vw, 3.5rem); border-radius: 36px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(169, 232, 109, .45), transparent 70%),
    linear-gradient(135deg, #fff, var(--mint-100));
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.feedback-intro { position: sticky; top: 104px; }
.feedback-intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.feedback-text { margin: 1.1rem 0 0; font-size: 1.06rem; color: var(--ink-soft); max-width: 52ch; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chips li {
  padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--forest-700); background: rgba(40, 84, 20, .08); border: 1px solid var(--line);
}

/* Embedded Google Form */
.form-frame {
  overflow: hidden; border-radius: 24px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.form-frame iframe { display: block; width: 100%; border: 0; }

/* ---------- Footer / contact ---------- */
.site-footer {
  margin-top: 1rem; color: #fff;
  padding: clamp(64px, 8vw, 96px) 0 1.75rem;
  border-radius: 56px 56px 0 0;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(110, 193, 59, .2), transparent 70%),
    var(--forest-950);
}
.footer-head { margin-bottom: 2.25rem; }
.site-footer h2 { color: #fff; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: 20px;
  text-decoration: none; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .25s, background .25s, border-color .25s;
}
a.contact-item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(169, 232, 109, .5); }
.contact-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: none; border-radius: 14px; background: var(--lime-300); color: var(--forest-950); }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-200); }
.contact-value { display: block; font-weight: 600; overflow-wrap: anywhere; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.brand-sm { font-size: 1.1rem; }
.brand-sm .brand-mark { width: 28px; height: 28px; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--lime-200); }
.to-top:hover { color: #fff; }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(169, 232, 109, .18), 0 0 0 28px rgba(169, 232, 109, .08); }
  50%      { box-shadow: 0 0 0 18px rgba(169, 232, 109, .14), 0 0 0 40px rgba(169, 232, 109, .05); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .feedback-card { grid-template-columns: 1fr; }
  .feedback-intro { position: static; }
  .hero-art { max-width: 300px; }
  .hero, .section-dark { border-radius: 0 0 36px 36px; }
  .section-dark { border-radius: 36px; }
  .site-footer { border-radius: 36px 36px 0 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: .25rem; padding: .75rem 1.25rem 1.25rem;
    background: rgba(14, 32, 7, .97); border-bottom: 1px solid rgba(255, 255, 255, .1);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { padding: .8rem 1rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
