/* ==========================================================================
   Wayslo — Official App Theme Alignment (Mürekkepten Kora & Açık Zemin)
   Exact Flutter Theme Tokens:
   - Paper Canvas: #F3F7FB (AppTheme._paper)
   - Brand Gold: #FFB900 (AppTheme.brand)
   - Deep Ink Text: #102033 (AppTheme._ink)
   - Hairline Border: #DCE6EF (AppTheme._hairline)
   ========================================================================== */

:root {
  /* Brand Tokens */
  --brand-gold: #FFB900;
  --brand-gold-hover: #E5A700;
  --brand-gold-glow: rgba(255, 185, 0, 0.32);
  --brand-gold-subtle: rgba(255, 185, 0, 0.15);
  --brand-gold-border: rgba(255, 185, 0, 0.45);

  /* App Surfaces from AppTheme */
  --bg-canvas: #F3F7FB;       /* AppTheme._paper */
  --bg-surface: #FFFFFF;      /* Clean White Surface */
  --bg-card: #FFFFFF;         /* AppTheme Card Fill */
  --bg-elevated: #F8FAFC;

  /* Typography from AppTheme */
  --text-primary: #102033;    /* AppTheme._ink (Deep Luxury Ink) */
  --text-secondary: #4A5E73;  /* Refined Muted Ink */
  --text-tertiary: #6E8298;   /* Subtle Metadata */
  --text-inverse: #FFFFFF;

  /* Borders & Dividers from AppTheme */
  --border-subtle: #DCE6EF;   /* AppTheme._hairline */
  --border-medium: #CBD5E1;
  --border-focus: #FFB900;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(circle 800px at 80% 20%, rgba(255, 185, 0, 0.12), transparent),
    radial-gradient(circle 600px at 15% 85%, rgba(255, 185, 0, 0.08), transparent);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Accessible Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Header */
.site-header {
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(243, 247, 251, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
}

.header-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-svg {
  height: 32px;
  width: auto;
  display: block;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background-color: var(--brand-gold);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--brand-gold-glow);
  transition: all var(--transition-fast);
}

.header-btn:hover {
  background-color: var(--brand-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 185, 0, 0.4);
}

.header-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Main Single Viewport Stage */
.main-stage {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px;
  gap: 52px;
}

/* Left Column: Conversion & Content */
.left-column {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 580px;
}

.main-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-wrap: balance;
}

.main-title span {
  color: #CA6702; /* AppTheme.burntCaramel warm rich gold accent */
  background: linear-gradient(135deg, #EE9B00 0%, #CA6702 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
  text-wrap: pretty;
}

/* Download CTA Card & QR Group */
.download-action-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow:
    0 16px 40px rgba(16, 32, 51, 0.06),
    0 2px 6px rgba(16, 32, 51, 0.03);
}

.action-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  background-color: var(--brand-gold);
  border: 1px solid var(--brand-gold-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 6px 20px var(--brand-gold-glow);
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.playstore-btn:hover {
  background-color: var(--brand-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 185, 0, 0.45);
}

.playstore-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.playstore-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6C5200;
  line-height: 1.1;
}

.playstore-main {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-left: 24px;
  border-left: 1.5px solid var(--border-subtle);
  flex-shrink: 0;
}

.qr-code-view {
  width: 96px;
  height: 96px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  display: block;
}

.qr-caption {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  fill: #CA6702;
}

/* Right Column: Phone Showcase */
.right-column {
  flex: 0.95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Phone Mockup Bezel */
.interactive-phone {
  position: relative;
  height: min(730px, calc(100dvh - 120px));
  aspect-ratio: 402 / 874;
  background-color: #000000;
  border: 9px solid #1E2530;
  border-radius: 48px;
  box-shadow:
    0 24px 60px rgba(16, 32, 51, 0.18),
    0 8px 24px rgba(16, 32, 51, 0.08),
    0 0 0 1px rgba(16, 32, 51, 0.06);
  display: flex;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.interactive-phone:hover {
  transform: translateY(-4px);
  box-shadow:
    0 32px 75px rgba(16, 32, 51, 0.22),
    0 12px 30px rgba(16, 32, 51, 0.1),
    0 0 0 1px rgba(16, 32, 51, 0.08);
}

.phone-screen-frame {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background-color: #F8FAFC;
}

.app-display-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 38px;
  transition: opacity 220ms ease;
}

.app-display-image.fading {
  opacity: 0;
}

.phone-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 185, 0, 0.04) 100%
  );
  pointer-events: none;
  border-radius: 38px;
  z-index: 20;
}

/* Dynamic Island & Status Bar */
.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  background-color: #000000;
  border-radius: var(--radius-full);
  z-index: 35;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  pointer-events: none;
}

.island-lens {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: #0c121c;
  box-shadow: inset 0 0 2px #1f2f4a;
}

.phone-status-overlay {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  pointer-events: none;
  color: #000000;
}

.status-time {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #000000;
}

.status-right-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000000;
}

.status-icon {
  width: 14px;
  height: 10px;
  display: block;
}

.battery-icon {
  width: 20px;
  height: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  body {
    overflow-y: auto;
  }

  .main-stage {
    flex-direction: column;
    padding: 32px 20px 48px;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 68px);
  }

  .left-column {
    text-align: center;
    align-items: center;
    max-width: 580px;
    margin: 0 auto;
  }

  .main-title {
    font-size: 34px;
  }

  .download-action-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .playstore-btn {
    align-self: center;
  }

  .qr-block {
    display: none;
  }

  /* Mobilde telefon gözükmesin */
  .right-column {
    display: none !important;
  }
}
