/* AlliHat Brand Overrides for Bulma */

:root {
  --brand: #9473D5;
  --brand-dark: #7355B0;
  --brand-light: #f3f0ff;
  --brand-subtle: #ebe5fa;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
}

/* Bulma primary color override */
.button.is-primary {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.button.is-primary:hover,
.button.is-primary:focus {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(148, 115, 213, 0.35);
}
.button.is-primary {
  transition: all 0.2s ease;
}

/* General */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-primary);
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  overflow-x: hidden;
}

/* Titles use New York (Apple's serif typeface) */
.title,
h1, h2, h3, h4, h5, h6 {
  font-family: 'New York', 'New York Large', Georgia, 'Times New Roman', serif;
}

/* ================================================
   SCROLL REVEAL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered delays for child elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Scale-up variant for images */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar > .container img {
  max-height: none;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-name {
  font-weight: 600;
  font-size: 1.33rem;
  color: var(--brand);
}

/* ================================================
   HERO
   ================================================ */
.hero.is-fullheight-with-navbar {
  min-height: calc(100vh - 3.25rem);
  background: linear-gradient(170deg, #ffffff 0%, var(--brand-light) 100%);
  position: relative;
  overflow: hidden;
}

/* Floating gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(148, 115, 213, 0.3) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: orb-float-1 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(115, 85, 176, 0.2) 0%, transparent 70%);
  bottom: -5%;
  left: -8%;
  animation: orb-float-2 18s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(180, 160, 230, 0.25) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation: orb-float-3 12s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 25px) scale(1.05); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -20px) scale(1.08); }
  66% { transform: translate(-15px, 15px) scale(0.96); }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 20px) scale(1.1); }
}

/* Hero content sits above the orbs */
.hero-body {
  position: relative;
  z-index: 1;
}

.hero-title {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-subtitle {
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 440px;
}

/* Floating animation on hero screenshot */
.hero-screenshot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(148, 115, 213, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 115, 213, 0.12);
  animation: hero-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero entrance animations */
.hero-text-enter {
  animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-text-enter-delay-1 {
  animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-text-enter-delay-2 {
  animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-text-enter-delay-3 {
  animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.hero-image-enter {
  animation: hero-scale-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes hero-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-scale-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(40px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ================================================
   GRADIENT TEXT
   ================================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, #b794e8 50%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================
   FEATURES
   ================================================ */
.features-section {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.feature-row {
  margin-bottom: 5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.is-reversed {
  flex-direction: row-reverse;
}

.feature-row .subtitle {
  line-height: 1.5;
}

.feature-screenshot {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-screenshot:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ================================================
   MORE FEATURES (card grid)
   ================================================ */
.more-features-section {
  background-color: #fafafa;
  padding: 6rem 1.5rem;
}

.small-feature {
  padding: 2rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  height: 100%;
}

.small-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(148, 115, 213, 0.12),
              0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: var(--brand-subtle);
}


.small-feature p {
  line-height: 1.7;
}

.small-feature-img {
  display: block;
  width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Feature icon + title row */
.feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-header .title {
  margin-bottom: 0;
}

/* ================================================
   HOW IT WORKS
   ================================================ */
.how-it-works-section {
  background-color: #fafafa;
  padding: 0rem 1.5rem 6rem 1.5rem;
}

kbd {
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  font-family: inherit;
}

/* ================================================
   PRIVACY
   ================================================ */
.privacy-section {
  padding: 4rem 1.5rem;
  background: var(--text-primary);
}

.privacy-section .title {
  color: #ffffff;
}

.privacy-point {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.privacy-point-icon {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.privacy-point p {
  line-height: 1.5;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.privacy-section .is-size-7 {
  color: rgba(255, 255, 255, 0.35) !important;
}

.privacy-section .is-size-7 a {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* ================================================
   ABOUT
   ================================================ */
.about-section {
  padding: 4rem 1.5rem;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-photo {
  width: 320px;
  min-width: 320px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-card p {
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-card strong {
  color: var(--text-primary);
}

@media screen and (max-width: 768px) {
  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo {
    width: 280px;
    min-width: auto;
  }
}

/* ================================================
   CTA
   ================================================ */
.cta-section {
  padding: 7rem 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, #2d2b55 60%, #3d2d6b 100%);
  position: relative;
  overflow: hidden;
}

.cta-section .title {
  color: #ffffff;
}

.cta-section .has-text-grey {
  color: rgba(255, 255, 255, 0.6) !important;
}

.cta-section .button.is-primary {
  background: #ffffff;
  color: var(--brand-dark);
  border-color: #ffffff;
  font-weight: 600;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.cta-section .button.is-primary:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* Subtle glow behind CTA */
.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 115, 213, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Download page */
.download-box {
  padding: 3rem 2.5rem;
}

.license-section {
  margin: 1.5rem 0;
}

/* ================================================
   SECTION DIVIDER
   ================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-subtle) 50%, transparent 100%);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background-color: #fafafa;
  padding: 3rem 1.5rem;
}

.footer .brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer .brand-name {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand);
}

.subtitle {
  margin-top: 0.75rem;
}

/* ================================================
   REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-screenshot {
    animation: none;
  }

  .hero-orb {
    animation: none;
  }

  .hero-text-enter,
  .hero-text-enter-delay-1,
  .hero-text-enter-delay-2,
  .hero-text-enter-delay-3,
  .hero-image-enter {
    animation: none;
    opacity: 1;
  }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem !important;
  }

  .feature-row.is-reversed {
    flex-direction: column;
  }

  .feature-row .column.is-offset-1 {
    margin-left: 0;
  }

  .hero-screenshot {
    margin-top: 2rem;
  }

  .hero-orb {
    opacity: 0.3;
  }

  .hero-orb-1 {
    width: 300px;
    height: 300px;
  }

  .hero-orb-2 {
    width: 250px;
    height: 250px;
  }

  .hero-orb-3 {
    display: none;
  }

  .cta-section {
    padding: 5rem 1.5rem;
  }
}
