/* DelayDock — Global Styles */

:root {
  --bg-background: #f8f9fb;
  --bg-surface: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #5c6370;
  --accent: #1a7f6e;
  --accent-hover: #156b5c;
  --accent-light: #e8f5f2;
  --border: #e2e6ed;
  --shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1120px;
  --header-height: 72px;
  --transition: 0.2s ease;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin-top: 0;
}

ul, ol {
  padding-left: 1.25rem;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.logo-link:hover {
  color: var(--text-primary);
}

.logo-link img {
  width: 32px;
  height: 32px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  color: var(--text-primary);
}

.menu-toggle:hover {
  background: var(--accent-light);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
  gap: 0.25rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--text-primary);
}

.nav-mobile .btn {
  margin-top: 0.75rem;
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
}

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

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-play {
  background: var(--text-primary);
  color: #ffffff;
}

.btn-play:hover {
  background: #2d2d44;
  color: #ffffff;
}

.btn-play svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hero */

.hero {
  padding-block: clamp(3rem, 10vw, 6rem);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-background) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-text {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Phone Mockup */

.phone-mockup {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-frame {
  width: min(280px, 75vw);
  aspect-ratio: 9 / 19;
  background: linear-gradient(145deg, #2d2d44 0%, #1a1a2e 100%);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow), 0 20px 60px rgba(26, 26, 46, 0.2);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1a1a2e;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 16px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.phone-app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.phone-app-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.phone-app-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.phone-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.phone-app-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.phone-app-row-icon.social { background: linear-gradient(135deg, #e1306c, #f77737); }
.phone-app-row-icon.video { background: linear-gradient(135deg, #ff0000, #cc0000); }
.phone-app-row-icon.game { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }

.phone-app-row-info {
  flex: 1;
  min-width: 0;
}

.phone-app-row-name {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.phone-app-row-status {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.phone-app-row-toggle {
  width: 40px;
  height: 22px;
  background: var(--accent);
  border-radius: var(--radius-full);
  position: relative;
  flex-shrink: 0;
}

.phone-app-row-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
}

.phone-overlay {
  margin: auto 16px 24px;
  padding: 20px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.phone-overlay-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-overlay-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.phone-overlay h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.phone-overlay p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.phone-overlay-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.phone-overlay-cancel {
  display: block;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

/* Feature Cards */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0;
  line-height: 1.65;
}

/* How It Works */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Trust Section */

.trust-section {
  background: var(--bg-surface);
  border-block: 1px solid var(--border);
}

.trust-content {
  max-width: 720px;
  margin-inline: auto;
}

.trust-content h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.trust-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.trust-content p:last-child {
  margin-bottom: 0;
}

/* CTA Section */

.cta-section {
  background: linear-gradient(135deg, #1a7f6e 0%, #0f5c50 100%);
  color: #ffffff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  margin-inline: clamp(1rem, 4vw, 2rem);
  max-width: calc(var(--max-width) - 4rem);
  margin-block: clamp(3rem, 8vw, 5rem);
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-section p {
  opacity: 0.9;
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-inline: auto;
}

.cta-section .btn-play {
  background: #ffffff;
  color: var(--text-primary);
}

.cta-section .btn-play:hover {
  background: #f0f0f5;
  color: var(--text-primary);
}

/* Page Content (About, Privacy, Support) */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  max-width: 640px;
  line-height: 1.7;
}

.page-content {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.content-block {
  max-width: 720px;
}

.content-block h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-block p,
.content-block li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-block p {
  margin-bottom: 1rem;
}

.content-block ul,
.content-block ol {
  margin-bottom: 1rem;
}

.content-block li {
  margin-bottom: 0.5rem;
}

.content-block a {
  word-break: break-word;
}

.meta-info {
  background: var(--accent-light);
  border: 1px solid rgba(26, 127, 110, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.meta-info p {
  margin-bottom: 0.375rem;
  color: var(--text-primary);
}

.meta-info p:last-child {
  margin-bottom: 0;
}

.placeholder-notice {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #7a6520;
}

/* Support */

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.support-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.support-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.support-card ul {
  margin-bottom: 0;
}

.support-card li {
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
  line-height: 1.6;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Developer Section */

.developer-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  margin-top: 3rem;
}

.developer-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.developer-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  background: var(--text-primary);
  color: #c8ccd4;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

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

.footer-brand .logo-link {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand .logo-link:hover {
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #c8ccd4;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  text-align: center;
}

/* Responsive */

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .nav-actions {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-mockup {
    justify-content: flex-end;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .btn:hover,
  .feature-card:hover {
    transform: none;
  }
}
