:root {
  --bg: #f8f6f2;
  --surface: #fffbf7;
  --ink: #0d1b24;
  --muted: #4a5d6b;
  --line: #e4d4c1;
  --brand: #0f766e;
  --brand-light: #14b8a6;
  --brand-2: #f97316;
  --card: #fff;
  --shadow: 0 14px 30px rgba(10, 30, 40, 0.12);
  --shadow-lg: 0 20px 48px rgba(10, 30, 40, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 20% 10%, #fbe7bf, transparent 35%),
    radial-gradient(circle at 80% 15%, #b7e6e2, transparent 35%),
    var(--bg);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 0.8rem;
}

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

.wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(10, 30, 40, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mascot {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand:hover .brand-mascot {
  transform: scale(1.08) rotate(2deg);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.brand span {
  color: var(--brand);
  font-size: 0.9em;
}

nav {
  display: flex;
  gap: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4.2rem;
}

.glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.3;
  pointer-events: none;
}

.glow-a {
  background: #f59e0b;
  top: -120px;
  left: -120px;
}

.glow-b {
  background: #14b8a6;
  right: -90px;
  top: -90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4e5d66;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  max-width: 13ch;
  margin-top: 1rem;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy p {
  max-width: 58ch;
}

.hero-panel {
  background: linear-gradient(160deg, #102a34, #144450);
  color: #f2f8f8;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-illustration {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #f8fbfb;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.35);
}

.btn-secondary {
  background: #fff;
  border-color: #c7b68f;
  color: #0f766e;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.services {
  padding: 3rem 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  background: var(--card);
}

.service-icon {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.about-perla {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(13, 148, 136, 0.08));
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.about-traits {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.about-traits li {
  font-weight: 600;
  padding-left: 0;
  color: var(--ink);
}

.about-mascot {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #fff 0%, #fffbf7 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.about-mascot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.activities {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #fff4dc, #fff);
  border-block: 1px solid var(--line);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.activity-card {
  background: var(--card);
  border: 1px solid #eadfc9;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(71, 60, 42, 0.08);
}

.codes {
  color: #5a6770;
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.contact {
  padding: 3.5rem 0;
}

.contact-card {
  background: linear-gradient(145deg, #0f172a, #1b3d4f);
  color: #eaf5f8;
  border-radius: 20px;
  padding: 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.5rem;
  color: #5b6870;
}

.ai-chat-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #f8fbfb;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.35);
  cursor: pointer;
}

.ai-chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 4.9rem;
  width: min(360px, calc(100vw - 1.6rem));
  height: 480px;
  max-height: 70vh;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.ai-chat-panel[hidden] {
  display: none;
}

.ai-chat-header {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-header h3 {
  margin: 0;
  font-size: 1rem;
}

.ai-chat-close {
  border: none;
  background: transparent;
  color: #52616b;
  font-weight: 700;
  cursor: pointer;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-msg {
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.ai-msg-user {
  margin-left: auto;
  max-width: 86%;
  background: #dff7f3;
  border: 1px solid #b5ebe2;
}

.ai-msg-ai {
  max-width: 90%;
  background: #f4f7fa;
  border: 1px solid #dce3ea;
}

.ai-msg-ai p {
  margin: 0;
}

.ai-msg-ai p + p {
  margin-top: 0.45rem;
}

.ai-msg-ai ul {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}

.ai-msg-ai li + li {
  margin-top: 0.2rem;
}

.ai-chat-form {
  border-top: 1px solid var(--line);
  padding: 0.65rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.ai-chat-form input {
  min-width: 0;
  border: 1px solid #c8d3dc;
  border-radius: 10px;
  padding: 0.58rem 0.65rem;
  font: inherit;
}

.ai-chat-form button {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #0f766e;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .service-grid,
  .activity-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    max-width: 18ch;
  }
}

@media (max-width: 680px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .hero-grid,
  .about-grid,
  .service-grid,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .about-mascot {
    padding: 1.5rem;
  }

  .ai-chat-panel {
    right: 0.8rem;
    bottom: 4.6rem;
    width: calc(100vw - 1.6rem);
  }
}
