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

/* Variables */
:root {
  --color-bg: #111111;
  --color-bg-alt: #1a1a1a;
  --color-text: #e0e0e0;
  --color-text-muted: #999999;
  --color-heading: #ffffff;
  --color-accent: #e05a2b;
  --color-link: #e05a2b;
  --color-link-hover: #ff7a4d;
  --color-border: #333333;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);
  --max-width: 800px;
  --spacing-section: 5rem;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Links */
a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header .logo img {
  height: 28px;
  width: auto;
}

.site-header nav a {
  color: var(--color-text-muted);
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

.site-header nav a:hover {
  color: var(--color-heading);
  text-decoration: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: var(--spacing-section) 1.5rem;
  background: url("../images/background.jpg") center center / cover no-repeat;
  background-color: var(--color-bg);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.6) 0%,
    rgba(17, 17, 17, 0.85) 100%
  );
}

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

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sections */
section {
  padding: var(--spacing-section) 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

section p {
  margin-bottom: 1rem;
}

section p:last-child {
  margin-bottom: 0;
}

/* Track record list */
.track-record {
  margin-top: 1.5rem;
}

.track-record li {
  list-style: none;
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.track-record li strong {
  color: var(--color-heading);
}

.track-record .company-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-section p {
  margin-bottom: 0.5rem;
}

.contact-section .location {
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: var(--color-heading);
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin-right: 1.5rem;
}

/* App page */
.app-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.app-header .app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  flex-shrink: 0;
}

.app-header h1 {
  font-size: 2.5rem;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.app-header .app-description {
  margin-bottom: 0;
}

.app-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.app-layout-left {
  flex: 1;
}

.app-layout-right {
  flex: 0 0 auto;
}

.app-store-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.app-store-badge img {
  height: 44px;
  width: auto;
}

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

.app-features li {
  padding: 0.4rem 0;
}

.app-features li::before {
  content: "\25B8";
  color: var(--color-accent);
  margin-right: 0.75rem;
}

.app-demo {
  max-width: 300px;
  border-radius: 12px;
}

/* Legal pages */
.legal-content h1 {
  font-size: 1.75rem;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.legal-content .effective-date {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin: 0.75rem 0 0.75rem 1.25rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 640px) {
  :root {
    --spacing-section: 3rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  section h2 {
    font-size: 1.25rem;
  }

  .site-header .logo img {
    height: 22px;
  }

  body {
    font-size: 1rem;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-layout {
    flex-direction: column;
  }

  .app-layout-right {
    order: -1;
  }

  .app-demo {
    max-width: 250px;
  }
}
