/* ============================================================
   styles.css — scottbreendev.github.io
   Pineapple palette: warm gold + deep leaf green + warm cream
   ============================================================ */


/* === Color tokens (light mode) ================================== */
:root {
  --color-bg:             #FEFCF3;     /* warm cream */
  --color-surface:        #FFFFFF;
  --color-surface-raised: #FBF7E8;     /* subtle warm tint */
  --color-border:         #E5D9B6;     /* warm tan */
  --color-text-primary:   #18120A;     /* warm near-black */
  --color-text-secondary: #604E2A;     /* warm brown */
  --color-text-muted:     #A08C5E;
  --color-brand:          #C08A14;     /* pineapple gold */
  --color-brand-hover:    #9B6E10;
  --color-accent:         #2E7050;     /* deep leaf green */
  --color-brand-subtle:   rgba(192, 138, 20, 0.09);
  --gradient-hero:        linear-gradient(160deg, #FEFCF3 0%, #FBF1D0 55%, #EDE8D5 100%);
  --gradient-brand:       linear-gradient(135deg, #D4A832 0%, #C08A14 100%);
}

/* === Color tokens (dark mode) =================================== */
.dark {
  --color-bg:             #100E08;
  --color-surface:        #1A1710;
  --color-surface-raised: #242018;
  --color-border:         #3A3020;
  --color-text-primary:   #F0E8CC;     /* warm cream */
  --color-text-secondary: #C4A96A;
  --color-text-muted:     #7A6440;
  --color-brand:          #D4A832;     /* brighter gold for dark bg */
  --color-brand-hover:    #E8C050;
  --color-accent:         #4AA876;     /* lighter green for dark bg */
  --color-brand-subtle:   rgba(212, 168, 50, 0.10);
  --gradient-hero:        linear-gradient(160deg, #100E08 0%, #1A1710 55%, #1E1C11 100%);
}


/* === Reset ======================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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


/* === Focus ring ================================================== */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 4px;
}


/* === Theme icon helpers (CSS-driven before Alpine loads) ========= */
/* Prevents icon flash on page load — CSS kicks in synchronously     */
/* Alpine x-show will take over once it initialises (same logic).    */
.theme-sun  { display: none;  }
html.dark .theme-sun  { display: block; }
.theme-moon { display: block; }
html.dark .theme-moon { display: none;  }


/* === Navigation ================================================== */
.nav-root {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-root.scrolled {
  background-color: var(--color-bg);
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.dark .nav-root.scrolled {
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-logo:hover {
  color: var(--color-brand);
}

.nav-pineapple {
  width: 24px;
  height: auto;
  color: var(--color-brand);
  flex-shrink: 0;
  display: block;
}

.nav-wordmark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.18s;
}

.nav-link:hover {
  color: var(--color-brand);
}

.theme-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-secondary);
  border-radius: 8px;
  transition: background-color 0.15s, color 0.15s;
}

.theme-btn:hover {
  background-color: var(--color-brand-subtle);
  color: var(--color-brand);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}


/* === Hero ======================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
}

.hero-watermark {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: min(420px, 65vw);
  pointer-events: none;
  color: var(--color-brand);
  opacity: 0.04;
}

.dark .hero-watermark {
  opacity: 0.055;
}

.hero-watermark svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon-wrap {
  margin-bottom: 2rem;
}

.hero-pineapple {
  width: 80px;
  height: auto;
  color: var(--color-brand);
  filter: drop-shadow(0 6px 20px rgba(192, 138, 20, 0.28));
  display: block;
}

.dark .hero-pineapple {
  filter: drop-shadow(0 6px 24px rgba(212, 168, 50, 0.35));
}

.hero-overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 1.125rem;
}

.hero-headline {
  font-size: clamp(2.375rem, 6.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 1.375rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--color-brand);
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--color-text-secondary);
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.hero-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
  animation: bounce-soft 2.8s ease-in-out 1.2s infinite;
}

.hero-scroll-cta:hover {
  color: var(--color-brand);
}

.hero-scroll-cta svg {
  width: 15px;
  height: 15px;
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  55%       { transform: translateY(5px); }
}


/* === Apps Section ================================================ */
.apps-section {
  padding: 6rem 1.5rem;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  margin-bottom: 0.625rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--color-text-secondary);
}


/* === App Cards =================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Live card — interactive, gold-tinted */
.app-card-live {
  text-decoration: none;
  border-color: rgba(192, 138, 20, 0.28);
  box-shadow: 0 2px 20px rgba(192, 138, 20, 0.07);
  cursor: pointer;
}

.dark .app-card-live {
  border-color: rgba(212, 168, 50, 0.22);
  box-shadow: 0 2px 20px rgba(212, 168, 50, 0.07);
}

.app-card-live:hover {
  transform: translateY(-3px);
  border-color: var(--color-brand);
  box-shadow: 0 8px 32px rgba(192, 138, 20, 0.14);
}

.dark .app-card-live:hover {
  box-shadow: 0 8px 32px rgba(212, 168, 50, 0.16);
}

/* Coming soon card — static, muted */
.app-card-soon {
  background-color: var(--color-surface-raised);
  border-style: dashed;
  opacity: 0.68;
}

/* Card header row */
.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

/* App icon square */
.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card-icon-placeholder {
  background-color: var(--color-brand-subtle);
  padding: 11px;
}

.app-card-icon-placeholder svg {
  width: 100%;
  height: 100%;
  color: var(--color-brand);
  opacity: 0.45;
  display: block;
}

/* Status badges */
.app-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-badge-live {
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  border: 1px solid rgba(192, 138, 20, 0.2);
}

.dark .app-badge-live {
  border-color: rgba(212, 168, 50, 0.2);
}

.app-badge-soon {
  background: rgba(130, 130, 130, 0.07);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Card body */
.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.app-card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
}

.app-card-subtitle {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-brand);
  margin-bottom: 0.375rem;
}

.app-card-desc {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--color-text-secondary);
}

/* Card footer — "Visit site →" */
.app-card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.app-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.18s;
}

.app-card-live:hover .app-card-link {
  gap: 0.52rem;
}

.app-card-link svg {
  width: 14px;
  height: 14px;
}

.app-card-notify-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.18s;
}

.app-card-notify-link:hover {
  color: var(--color-text-secondary);
}

.app-card-notify-link svg {
  width: 13px;
  height: 13px;
}


/* === Contact Section ============================================= */
.contact-section {
  padding: 5.5rem 1.5rem;
  background-color: var(--color-surface-raised);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.contact-inner {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.contact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.contact-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(192, 138, 20, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.dark .contact-link {
  text-decoration-color: rgba(212, 168, 50, 0.4);
}

.contact-link:hover {
  color: var(--color-brand-hover);
  text-decoration-color: var(--color-brand-hover);
}


/* === Footer ====================================================== */
.footer {
  padding: 2.75rem 1.5rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.footer-pineapple {
  width: 20px;
  height: auto;
  color: var(--color-brand);
  opacity: 0.65;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.18s;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
