/* ==========================================================================
   HALCYON FORECAST — OFFICIAL SPLASH & SUPPORT PORTAL
   Atmospheric Weather Aesthetic + Skeuomorphic Glows & Modern Web Polish
   ========================================================================== */

:root {
  --bg-dark: #070a12;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --bg-input: rgba(10, 16, 29, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  
  --accent-cyan: #38bdf8;
  --accent-amber: #fbbf24;
  --accent-purple: #a855f7;
  --accent-green: #34d399;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Atmospheric Background Effects */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(168, 85, 247, 0.1) 70%, transparent 100%);
  top: -100px;
  left: 20%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, rgba(56, 189, 248, 0.08) 60%, transparent 100%);
  bottom: 10%;
  right: -100px;
}

.stars-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff 100%, transparent),
    radial-gradient(1px 1px at 100px 150px, rgba(255,255,255,0.7) 100%, transparent),
    radial-gradient(1.5px 1.5px at 240px 90px, #38bdf8 100%, transparent),
    radial-gradient(1px 1px at 320px 280px, #fbbf24 100%, transparent),
    radial-gradient(1px 1px at 450px 180px, rgba(255,255,255,0.5) 100%, transparent);
  background-size: 500px 500px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* Utilities */
.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-amber { color: var(--accent-amber); }
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-green { color: var(--accent-green); }

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-announcement {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  font-size: clamp(0.78rem, 2.5vw, 0.86rem);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 12px);
  flex-wrap: wrap;
  text-align: center;
}

.badge-pill {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.announcement-text {
  color: var(--text-secondary);
}

.announcement-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: clamp(10px, 2vw, 14px) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  min-width: 0;
}

.header-logo {
  width: clamp(36px, 8vw, 44px);
  height: clamp(36px, 8vw, 44px);
  border-radius: clamp(8px, 2vw, 10px);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.15);
}

.brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.app-developer {
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  color: var(--text-dim);
  white-space: nowrap;
}

.header-nav {
  display: none;
  gap: clamp(12px, 2vw, 20px);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.app-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-size: clamp(0.78rem, 2vw, 0.88rem);
  font-weight: 600;
  padding: 7px clamp(10px, 2vw, 14px);
  border-radius: 999px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.app-store-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: clamp(30px, 6vw, 60px) 0 clamp(24px, 5vw, 50px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 44px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  max-width: 100%;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-amber);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #fff;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  text-wrap: pretty;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 12px);
  margin-bottom: 32px;
}

.meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px clamp(10px, 2vw, 14px);
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.meta-val {
  font-size: clamp(0.84rem, 2vw, 0.92rem);
  font-weight: 600;
  color: #fff;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 560px) {
  .hero-buttons .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(45, 62, 89, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Showcase (Icon with 3D feel) */
.hero-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-icon-display {
  position: relative;
}

.large-app-icon {
  width: clamp(140px, 35vw, 220px);
  height: clamp(140px, 35vw, 220px);
  border-radius: clamp(30px, 8vw, 48px);
  object-fit: cover;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(56, 189, 248, 0.25),
    0 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease;
}

.large-app-icon:hover {
  transform: scale(1.04) rotate(-1deg);
}

/* ==========================================================================
   SCREENSHOT GALLERY
   ========================================================================== */
.gallery-section {
  padding: clamp(24px, 4vw, 40px) 0 clamp(36px, 6vw, 60px);
}

.section-label-center {
  text-align: center;
  margin-bottom: clamp(20px, 4vw, 36px);
}

.mini-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2vw, 0.82rem);
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.sub-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
  text-wrap: balance;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2.5vw, 20px);
}

@media (min-width: 768px) {
  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.screenshot-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.2);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  height: auto;
  display: block;
  object-fit: cover;
}

.screenshot-caption {
  padding: 8px clamp(8px, 1.5vw, 12px);
  font-size: clamp(0.75rem, 1.8vw, 0.84rem);
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(10, 16, 29, 0.8);
  border-top: 1px solid var(--border-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   FEEDBACK & BUG REPORT HUB
   ========================================================================== */
.feedback-section {
  padding: clamp(36px, 6vw, 60px) 0;
}

.feedback-card-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: clamp(14px, 3vw, var(--radius-lg));
  padding: clamp(18px, 4.5vw, 48px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.support-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2vw, 0.82rem);
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  max-width: 100%;
}

.feedback-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  text-wrap: balance;
}

.feedback-intro {
  color: var(--text-secondary);
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  max-width: 820px;
  line-height: 1.65;
  margin-bottom: 28px;
  text-wrap: pretty;
}

/* Mode Selection Chips */
.type-selector {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.8vw, 10px);
  margin-bottom: 24px;
}

.type-chip {
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 8px clamp(12px, 2vw, 18px);
  font-family: var(--font-main);
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-height: 42px;
}

.type-chip:hover {
  background: rgba(45, 62, 89, 0.8);
  color: #fff;
}

.type-chip.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4), rgba(56, 189, 248, 0.2));
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

/* Form Styles */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.required {
  color: var(--accent-amber);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-main);
  /* 16px font-size is strictly required on mobile to prevent iOS Safari auto-zooming! */
  font-size: 16px;
  padding: 12px 14px;
  min-height: 48px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.btn-submit {
  padding: 14px 28px;
  font-size: 1.05rem;
  min-height: 48px;
}

@media (max-width: 560px) {
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

.direct-email-note {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.direct-email-note a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.direct-email-note a:hover {
  text-decoration: underline;
}

/* Success Card */
.feedback-success-card {
  text-align: center;
  padding: clamp(24px, 5vw, 44px) 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-md);
}

.success-icon-badge {
  font-size: 3rem;
  color: var(--accent-green);
  margin-bottom: 14px;
}

.success-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: #fff;
  margin-bottom: 10px;
}

.success-msg {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.6;
  text-wrap: pretty;
}

.success-msg a {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* ==========================================================================
   TROUBLESHOOTING & FAQ
   ========================================================================== */
.troubleshooting-section {
  padding: clamp(36px, 6vw, 50px) 0 clamp(40px, 8vw, 80px);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 22px);
  transition: all 0.2s ease;
}

.faq-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.faq-q {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-wrap: balance;
}

.faq-a {
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.6;
  text-wrap: pretty;
}

.faq-a strong {
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: clamp(20px, 4vw, 30px) 0;
  background: rgba(7, 10, 18, 0.95);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  display: block;
}

.footer-copy {
  color: var(--text-dim);
}

.footer-center {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.dot-sep {
  color: var(--text-dim);
}

.hosted-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
