/* ==========================================================================
   FlyVirga Professional Aviation Design System
   Brand Color: Deep Royal Aviation Blue (#174889)
   ========================================================================== */

:root {
  --brand-blue: #174889;
  --brand-blue-dark: #0d2b54;
  --brand-blue-light: #215fae;
  --brand-gold: #f59e0b;
  --text-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;

  --font-heading: 'Neuton', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Nanum Gothic Coding', monospace;

  --max-width: 1200px;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  --radius-lg: 12px;
  --radius-md: 8px;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-white);
  background-color: var(--brand-blue);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  opacity: 0.9;
}

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

/* Header & Navigation */
.site-header {
  background-color: var(--brand-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 92px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-img:hover {
  transform: scale(1.03);
}

.logo-link {
  padding: 0 1.5rem 0 0;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.site-nav a.active, .site-nav a:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 26px;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--brand-blue-dark);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  }
  .site-nav.open {
    display: flex;
  }
}

/* Primary Action Buttons */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  color: var(--text-white);
  background-color: transparent;
  border: 2px solid var(--text-white);
  border-radius: 8px;
  box-shadow: 4px 4px 0px var(--text-white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-appstore:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--text-white);
  color: var(--text-white);
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.12);
  border: 2px solid var(--text-white);
  border-radius: 4px;
  box-shadow: 4px 4px 0px var(--text-white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-playstore:hover {
  transform: translate(-2px, -2px);
  background-color: rgba(255, 255, 255, 0.22);
  box-shadow: 6px 6px 0px var(--text-white);
  color: var(--text-white);
}

/* Page Layout */
.page-wrapper {
  flex: 1;
}

/* Hero Section with Aviation Cockpit Overlay */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 72, 137, 0.75) 0%, rgba(13, 43, 84, 0.92) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.35rem;
  max-width: 750px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Front & Center Mobile Showcase Frame */
.hero-app-showcase {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
}

.app-frame {
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
  background: #000;
}

.app-frame.center {
  max-width: 270px;
  transform: translateY(0);
  z-index: 2;
}

.app-frame.side {
  max-width: 220px;
  transform: translateY(20px);
  opacity: 0.9;
}

.app-frame:hover {
  transform: translateY(-8px);
  border-color: #ffffff;
}

@media (max-width: 860px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-app-showcase {
    gap: 0.75rem;
  }
  .app-frame.side {
    display: none;
  }
  .app-frame.center {
    max-width: 240px;
  }
}

/* Feature Sections */
.section {
  padding: 5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.15rem;
  opacity: 0.9;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Feature Text & Lists */
.feature-text h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.feature-text ul {
  list-style: none;
  margin-top: 1rem;
}

.feature-text li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.feature-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: #38bdf8;
}

/* Cockpit Visual Feature Cards */
.aviation-card {
  background: rgba(13, 43, 84, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.aviation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
}

.aviation-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.aviation-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.aviation-card p {
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Real PIREP Display Card */
.pirep-example-box {
  background: #091a33;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid #38bdf8;
  padding: 1.25rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 1.5rem 0;
  color: #e2e8f0;
  line-height: 1.6;
}

/* Pilot Testimonial Card */
.testimonial-box {
  background: rgba(13, 43, 84, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.8;
  box-shadow: var(--shadow-md);
}

/* Pilot FAQ Accordion */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(13, 43, 84, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-toggle {
  transition: transform 0.25s ease;
  font-size: 0.9rem;
}

/* Subscribe Section */
.subscribe-section {
  padding: 5rem 1.5rem;
  background: rgba(13, 43, 84, 0.9);
  text-align: center;
}

.subscribe-form {
  max-width: 550px;
  margin: 2rem auto 0;
  display: flex;
  gap: 0.75rem;
}

.subscribe-input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: var(--text-white);
  outline: none;
}

.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
  .subscribe-form {
    flex-direction: column;
  }
}

/* Legal Pages Styling */
.legal-page-container {
  flex: 1;
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 4rem 1.5rem;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.legal-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--brand-blue);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.legal-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--brand-blue-dark);
  margin: 2rem 0 1rem;
}

.legal-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: #334155;
}

.legal-list {
  margin: 1rem 0 1.5rem 2rem;
  color: #334155;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 1.5rem;
  }
  .legal-title {
    font-size: 1.8rem;
  }
}

/* Site Footer */
.site-footer {
  background-color: var(--brand-blue-dark);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links {
  margin: 1.25rem 0;
}

.footer-links a {
  margin: 0 0.5rem;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Deletion Page & Form Component Styles */
.deletion-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.deletion-option-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deletion-option-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.option-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.badge-instant {
  background-color: #dcfce7;
  color: #166534;
}

.badge-web {
  background-color: #e0f2fe;
  color: #0369a1;
}

.deletion-steps {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  color: #334155;
  line-height: 1.8;
}

.deletion-steps li {
  margin-bottom: 0.6rem;
}

.deletion-steps strong {
  color: var(--brand-blue-dark);
}

.deletion-form-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: #dc2626;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(23, 72, 137, 0.15);
}

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

.form-help {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  color: #ffffff;
  background-color: var(--brand-blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
}

.btn-form-submit:hover {
  background-color: var(--brand-blue-light);
  transform: translateY(-1px);
}

.btn-form-submit:active {
  transform: translateY(0);
}

.notice-box {
  background-color: #f1f5f9;
  border-left: 4px solid var(--brand-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.notice-box.warning {
  background-color: #fffbeb;
  border-left-color: #f59e0b;
  color: #78350f;
}

.notice-box.success {
  background-color: #f0fdf4;
  border-left-color: #22c55e;
  color: #166534;
}

.data-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-align: left;
}

.data-table th {
  background-color: #f1f5f9;
  color: var(--brand-blue-dark);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: #334155;
  vertical-align: top;
}

.data-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-deleted {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-retained {
  background-color: #fef3c7;
  color: #92400e;
}

.draft-preview-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}

.btn-secondary-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  color: var(--brand-blue-dark);
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-copy:hover {
  background-color: #cbd5e1;
}

.btn-mailto-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  color: #ffffff;
  background-color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mailto-action:hover {
  background-color: var(--brand-blue-light);
  color: #ffffff;
}

/* Store Badge Coming Soon Banner */
.store-badge-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-badge-wrapper.coming-soon {
  cursor: not-allowed;
  user-select: none;
}

.store-badge-wrapper.coming-soon img {
  opacity: 0.55;
  filter: grayscale(25%);
  transition: opacity 0.2s ease;
}

.badge-coming-soon-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0d2b54;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
  white-space: nowrap;
}



