:root {
  --background: #ffffff;
  --foreground: #222222;
  --muted: #5b5f66;
  --border: rgba(0, 0, 0, 0.1);
  --bubble: rgba(255, 255, 255, 0.6);
  --primary: #197B8D;
  --primary-dark: #176777;
  --accent: #1EA3BD;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(12, 22, 32, 0.12);
  --radius: 22px;
}

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

body {
  margin: 0;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.landing-minimal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fdfdfd;
  padding-top: 120px;
}

.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px clamp(2.5rem, 6vw, 3.5rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 10;
}

.hero-header-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--foreground);
  letter-spacing: -0.02em;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.hero-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-header nav button {
  background: transparent;
  border: none;
  font: inherit;
  color: rgba(34, 34, 34, 0.8);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  box-shadow: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hero-header nav button:hover {
  color: #1c1c1c;
}

.hero-header nav button:focus-visible {
  outline: none;
  text-decoration: underline;
}

.hero-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6rem, 10vw, 8rem) clamp(1.5rem, 6vw, 3rem) clamp(4rem, 6vw, 5rem);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-header {
    padding: 16px clamp(1.5rem, 6vw, 2.5rem);
  }

  .hero-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-header nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
  }
}

.hero-geometry {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.4;
}

.geometry-frame {
  position: relative;
  width: min(90vw, 700px);
  height: min(90vw, 700px);
}

.geometry-center {
  position: absolute;
  inset: 50%;
  width: clamp(140px, 22vw, 190px);
  height: clamp(140px, 22vw, 190px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid hsla(192, 72%, 35%, 0.35);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.2));
}

.geometry-flower {
  position: absolute;
  inset: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.flower-circle {
  position: absolute;
  width: clamp(200px, 32vw, 300px);
  height: clamp(200px, 32vw, 300px);
  border-radius: 50%;
  border: 2px solid hsla(192, 72%, 35%, 0.2);
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.flower-circle.circle-1 {
  transform: translate(-50%, -50%) rotate(0deg) translateY(-190px);
}
.flower-circle.circle-2 {
  transform: translate(-50%, -50%) rotate(60deg) translateY(-190px);
}
.flower-circle.circle-3 {
  transform: translate(-50%, -50%) rotate(120deg) translateY(-190px);
}
.flower-circle.circle-4 {
  transform: translate(-50%, -50%) rotate(180deg) translateY(-190px);
}
.flower-circle.circle-5 {
  transform: translate(-50%, -50%) rotate(240deg) translateY(-190px);
}
.flower-circle.circle-6 {
  transform: translate(-50%, -50%) rotate(300deg) translateY(-190px);
}

.geometry-hexagon {
  position: absolute;
  inset: 50%;
  width: clamp(220px, 38vw, 320px);
  height: clamp(220px, 38vw, 320px);
  transform: translate(-50%, -50%);
  border: 2px solid hsla(192, 72%, 35%, 0.3);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.geometry-points {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sacred-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: hsla(192, 72%, 35%, 0.45);
}

.sacred-point.point-center {
  width: 8px;
  height: 8px;
}

.sacred-point.point-top {
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sacred-point.point-bottom {
  bottom: 25%;
  left: 50%;
  transform: translate(-50%, 50%);
}

.sacred-point.point-left {
  left: 25%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.sacred-point.point-right {
  right: 25%;
  top: 50%;
  transform: translate(50%, -50%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: clamp(4.4rem, 10vw, 5.4rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  text-transform: none;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #000;
}

.hero-lede {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--muted);
  margin: 0 auto 2.6rem;
  max-width: 760px;
}

.hero-bubble {
  margin: 0 auto 2.5rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.75rem, 4vw, 3rem);
  border-radius: 1rem;
  background: hsla(192, 72%, 35%, 0.05);
  border: 2px solid hsla(192, 72%, 35%, 0.2);
  box-shadow: 0 10px 30px rgba(12, 24, 32, 0.12);
  backdrop-filter: blur(12px);
  color: rgba(15, 27, 43, 0.85);
  font-size: 1.2rem;
  line-height: 1.75;
  max-width: 720px;
  text-align: center;
}

.inline-alert {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(237, 91, 66, 0.4);
  background: rgba(237, 91, 66, 0.1);
  color: #8d2b19;
  text-align: left;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  padding: 1.3rem 3.9rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 30px rgba(8, 28, 35, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 15px 35px rgba(17, 50, 59, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(15, 21, 30, 0.08);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 21, 30, 0.08);
  background: rgba(30, 163, 189, 0.12);
}

.btn.full-width {
  width: 100%;
}

.simple-footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  color: #888;
  font-size: 0.92rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  padding: clamp(1rem, 5vw, 2.5rem);
  background: rgba(8, 12, 16, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  position: relative;
  box-shadow: 0 30px 60px rgba(9, 24, 32, 0.25);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
}

.modal-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted);
}

.modal-body h4 {
  margin: 1rem 0 0.35rem;
  color: var(--foreground);
}

.modal-body a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.modal-body a:hover {
  text-decoration: underline;
}

.modal-description {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.modal-panel--wisdom {
  padding-top: 2.5rem;
}

.wisdom-header {
  text-align: center;
  margin-bottom: 1rem;
}

.wisdom-divider {
  display: inline-block;
  width: 60px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  margin-bottom: 1rem;
}

.modal-panel--wisdom h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.5px;
  color: #000;
  text-transform: none;
}

.wisdom-body {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  color: rgba(34, 34, 34, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.wisdom-body blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
  color: rgba(34, 34, 34, 0.85);
}

.wisdom-card {
  border-radius: 16px;
  border: 1px solid rgba(25, 123, 141, 0.15);
  background: rgba(25, 123, 141, 0.05);
  padding: 1.2rem 1.4rem;
  font-size: 1rem;
}

.wisdom-card span {
  color: var(--primary);
  font-weight: 600;
}

.wisdom-italic {
  font-style: italic;
  text-align: center;
  color: rgba(34, 34, 34, 0.7);
}

.modal-panel--form {
  max-width: 620px;
  border-radius: 28px;
  padding: 2.8rem 3.5rem 3.6rem;
  box-shadow: 0 28px 60px rgba(12, 24, 32, 0.18);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.5px;
  text-transform: none;
  color: #000;
}

.form-header p {
  margin: 0;
  color: rgba(34, 34, 34, 0.65);
}

.generate-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.generate-form label {
  font-weight: 600;
  color: rgba(34, 34, 34, 0.8);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.2rem;
}

.generate-form input,
.generate-form select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

.generate-form input:focus,
.generate-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(30, 163, 189, 0.25);
}

.generate-form select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(0,0,0,0.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 1rem center;
  background-size: 12px 8px;
  color: #111;
  background-color: #fff;
}

.generate-form select option {
  color: #111;
  background: #fff;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form label {
  font-weight: 500;
  color: var(--foreground);
}

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  background: #f8fbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form input:focus,
.modal-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 119, 141, 0.2);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  z-index: 9999;
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 6px solid rgba(15, 119, 141, 0.15);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-slow {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.animate-spin-slow {
  animation: spin-slow 60s linear infinite;
}

.animate-spin-reverse {
  animation: spin-reverse 50s linear infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

@media (max-width: 640px) {
  .brand span {
    font-size: 1rem;
  }

  .hero-main {
    padding: 5rem 1.25rem 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 12vw, 3.5rem);
  }

  .hero-bubble {
    padding: 1.5rem 1.6rem;
    font-size: 1.05rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .geometry-frame {
    width: min(90vw, 480px);
    height: min(90vw, 480px);
  }
}

@media (max-width: 768px) {
  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-header nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-bubble {
    font-size: 0.95rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 11vw, 3.5rem);
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
