/* ============================================
   Atlantics App Landing Page - Base Styles
   ============================================ */

/* --- CSS Variables (customize per app) --- */
:root {
  --primary: {{PRIMARY_COLOR}};
  --primary-dark: {{PRIMARY_COLOR_DARK}};
  --secondary: {{SECONDARY_COLOR}};
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --bg-dark: #0f0f1a;
  --border: #e2e5ea;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.header__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header__nav a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.header__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero__icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-lg);
}

.hero__title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__tagline {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 20px;
}

.hero__description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  height: 52px;
  transition: transform var(--transition), opacity var(--transition);
}

.store-badge:hover {
  transform: scale(1.04);
  opacity: 0.9;
}

/* --- Features Section --- */
.features {
  padding: 100px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 56px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Screenshots Section --- */
.screenshots {
  padding: 100px 0;
  background: var(--bg-alt);
  text-align: center;
}

.screenshots__gallery {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.screenshots__item {
  width: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.screenshots__item:hover {
  transform: translateY(-6px) scale(1.02);
}

.screenshots__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- CTA Section --- */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta__box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  color: #fff;
}

.cta__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta__text {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* --- Contact Page --- */
.contact {
  padding: 140px 0 80px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact__info h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact__info p {
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact__detail svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* --- Form Styles --- */
.form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__input.error,
.form__textarea.error {
  border-color: #e74c3c;
}

.form__error {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 4px;
  display: none;
}

.form__error.visible {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form__success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form__success.visible {
  display: block;
}

.form__success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.form__success p {
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .header__toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__tagline {
    font-size: 1.05rem;
  }

  .features,
  .screenshots,
  .cta {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .screenshots__item {
    width: 180px;
  }

  .cta__box {
    padding: 40px 24px;
  }

  .cta__title {
    font-size: 1.6rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form {
    padding: 28px 20px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .screenshots__gallery {
    gap: 12px;
  }

  .screenshots__item {
    width: 150px;
  }
}
