/* Silver Flight Group — shadcn design system + frontend-design skill */

/* Google Fonts: Space Grotesk (technical/modern) + DM Serif Display (editorial contrast) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Serif+Display&display=swap');

/* ── Design Tokens (shadcn-inspired) ─────────────────────────────── */
:root {
  /* Neutral scale */
  --background: #fafaf9;
  --foreground: #0c0a09;
  --card: #ffffff;
  --card-foreground: #0c0a09;
  --muted: #f5f5f4;
  --muted-foreground: #78716c;
  --border: #e7e5e4;

  /* Brand — deep crimson */
  --primary: #991b1b;
  --primary-foreground: #ffffff;
  --primary-hover: #7f1d1d;
  --primary-subtle: rgba(153, 27, 27, 0.08);

  /* Accent */
  --accent: #b91c1c;
  --accent-foreground: #ffffff;

  /* Radius (shadcn default) */
  --radius: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(12, 10, 9, 0.05);
  --shadow: 0 1px 3px rgba(12, 10, 9, 0.1), 0 1px 2px rgba(12, 10, 9, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(12, 10, 9, 0.1), 0 2px 4px -2px rgba(12, 10, 9, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(12, 10, 9, 0.1), 0 4px 6px -4px rgba(12, 10, 9, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(12, 10, 9, 0.1), 0 8px 10px -6px rgba(12, 10, 9, 0.1);
}

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

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Layout ──────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* ── Header & Navigation ─────────────────────────────────────────── */
header {
  background-color: rgba(250, 250, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  margin-left: 0;
}

.nav-links a:hover {
  color: var(--foreground);
}

.language-selector {
  margin-left: 1rem;
  position: relative;
}

.language-selector select {
  appearance: none;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--card);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  transition: border-color 0.2s ease;
}

.language-selector select:hover {
  border-color: var(--muted-foreground);
}

.language-selector::after {
  content: '▾';
  font-size: 0.75rem;
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted-foreground);
}

/* ── Button System ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm), 0 0 0 0 transparent;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background-color: var(--muted);
  color: var(--foreground);
}

.btn-secondary:hover {
  background-color: var(--border);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
  border-color: var(--muted-foreground);
  transform: translateY(-1px);
}

/* ── Hero Section ────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--background);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--primary-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease-out;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
  color: var(--foreground);
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  animation: fadeInUp 0.7s ease-out 0.15s backwards;
}

/* ── Products Section ────────────────────────────────────────────── */
.products {
  background: var(--card);
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border);
}

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

.section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  font-weight: 400;
}

.product-showcase {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  animation: fadeInUp 0.7s ease-out forwards;
}

.product-item:nth-child(even) {
  flex-direction: row-reverse;
}

.product-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-content {
  flex: 1;
}

.product-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tag-red {
  background-color: var(--primary-subtle);
  color: var(--primary);
}

.tag-darkred {
  background-color: rgba(127, 29, 29, 0.08);
  color: var(--primary-hover);
}

.product-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--foreground);
}

.product-content p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.75;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  margin-bottom: 0.625rem;
  display: flex;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.feature-list li::before {
  content: "✓";
  margin-right: 0.625rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── About Section ───────────────────────────────────────────────── */
.about {
  background: var(--background);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(153, 27, 27, 0.015) 0px,
      transparent 1px,
      transparent 80px,
      rgba(153, 27, 27, 0.015) 81px
    );
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

/* ── Founder Story ───────────────────────────────────────────────── */
.founder-story {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  background-color: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 4rem;
  animation: scaleIn 0.6s ease-out 0.15s backwards;
}

.founder-image {
  flex: 0 0 260px;
  max-width: 260px;
}

.founder-image img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.founder-content {
  flex: 1;
}

.founder-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.875rem;
  margin-bottom: 1.25rem;
  color: var(--foreground);
  font-weight: 400;
  letter-spacing: -0.5px;
}

.founder-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.founder-intro {
  font-size: 1.0625rem !important;
  color: var(--foreground) !important;
  margin-bottom: 1.25rem !important;
}

.founder-mission {
  font-size: 1.125rem !important;
  font-weight: 600;
  color: var(--primary) !important;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin-top: 1.5rem !important;
  font-style: normal;
  letter-spacing: -0.01em;
}

/* ── Company Values ──────────────────────────────────────────────── */
.company-values {
  margin-top: 0;
}

.company-values > h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--foreground);
  font-weight: 400;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.value-card:hover {
  background-color: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.value-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-subtle);
  border-radius: calc(var(--radius) - 2px);
  transition: background-color 0.2s ease;
}

.value-card:hover .value-icon {
  background-color: rgba(153, 27, 27, 0.12);
}

.value-card h3,
.value-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.value-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
  font-size: 0.875rem;
}

/* ── CTA Section ─────────────────────────────────────────────────── */
.cta {
  background: var(--foreground);
  color: var(--background);
  text-align: center;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(153, 27, 27, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(185, 28, 28, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.cta p {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.7;
  line-height: 1.7;
}

.cta .btn {
  background-color: var(--card);
  color: var(--foreground);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.cta .btn:hover {
  background-color: var(--muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  color: var(--foreground);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.footer-about p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 2rem;
  height: 2rem;
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--muted-foreground);
}

.social-links a:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
}

.footer-nav h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 0.625rem;
}

.footer-nav ul li a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
  color: var(--foreground);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.footer-bottom-links a {
  color: var(--muted-foreground);
  margin-left: 1.5rem;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

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

/* ── Navigation Button Fix ───────────────────────────────────────── */
.nav-links .btn-primary {
  color: var(--primary-foreground) !important;
  background-color: var(--primary);
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

.nav-links .btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--primary-foreground) !important;
}

/* ── Solutions Grid (legacy support) ─────────────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  transition: all 0.2s ease;
}

.solution-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.solution-icon {
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--primary);
  border-radius: calc(var(--radius) - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.solution-icon.secondary { background-color: var(--primary-hover); }
.solution-icon.accent { background-color: var(--accent); }

.solution-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.solution-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── Privacy / Legal Pages ───────────────────────────────────────── */
.privacy-policy {
  padding: 3rem 0;
  background-color: var(--card);
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted-foreground);
  padding-top: 0.5rem !important;
}

.policy-content h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.25rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
  font-weight: 400;
}

.policy-content h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin: 2rem 0 1.5rem;
  color: var(--foreground);
}

.policy-content h3 {
  color: var(--foreground);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.policy-content h4 {
  font-size: 1rem;
  color: var(--foreground);
  margin: 1.5rem 0 0.75rem;
}

.policy-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-content a:hover {
  color: var(--primary-hover);
}

.data-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.data-card h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.policy-content ul {
  list-style: none;
  padding-left: 1.25rem;
}

.policy-content ul li {
  margin-bottom: 0.625rem;
  position: relative;
}

.policy-content ul li::before {
  content: "·";
  color: var(--foreground);
  margin-right: 0.5rem;
  font-weight: 700;
  font-size: 1.25em;
}

.policy-content .feature-list li::before {
  content: "·";
  color: var(--foreground);
  margin-right: 0.5rem;
  font-weight: 700;
  font-size: 1.25em;
}

.effective-date {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}

.main .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 3rem;
  }

  .product-item {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
  }

  .feature-list {
    display: inline-block;
    text-align: left;
  }

  .founder-story {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }

  .founder-image {
    flex: 0 0 auto;
    max-width: 240px;
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .product-content h3 {
    font-size: 1.5rem;
  }

  .founder-story {
    padding: 1.5rem;
  }

  .founder-content h3 {
    font-size: 1.375rem;
  }

  .founder-content p {
    font-size: 0.9375rem;
  }

  .founder-intro {
    font-size: 1rem !important;
  }

  .founder-mission {
    font-size: 1rem !important;
  }

  .cta h2 {
    font-size: 1.875rem;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .value-card {
    padding: 1.25rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links a {
    margin: 0 0.625rem;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .policy-content h1 {
    font-size: 1.75rem;
  }

  .policy-content h2 {
    font-size: 1.25rem;
  }

  .data-card {
    padding: 1.25rem;
  }
}
