/* ===== Custom Properties (from Colors.xaml) ===== */
:root {
  --primary: #FF6B35;
  --primary-light: #FFB088;
  --secondary: #FFF3E0;
  --tertiary: #4CAF50;
  --warm-gray: #FFF8F0;
  --dark-text: #242424;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
}

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn--outline {
  background: var(--white);
  color: var(--dark-text);
  border: 2px solid var(--dark-text);
}

.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn__soon {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: var(--nav-height);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-text);
  text-decoration: none;
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__logo img {
  width: 36px;
  height: 36px;
}

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

.nav__links a {
  color: var(--dark-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--primary);
  text-decoration: none;
}

.nav__links a.active::after {
  width: 100%;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== Hero ===== */
.hero {
  background: var(--secondary);
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__heading {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark-text);
}

.hero__subtext {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 32px;
  max-width: 480px;
}

/* CSS Phone Mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  margin: 0 auto;
}

.phone-mockup__frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 40px;
  border: 4px solid var(--dark-text);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.phone-mockup__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--dark-text);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-mockup__screen {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  overflow: hidden;
}

.phone-mockup__header {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-text);
  margin-bottom: 12px;
  padding-top: 8px;
}

.phone-mockup__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone-mockup__card {
  background: var(--warm-gray);
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
}

.phone-mockup__more {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 10px;
}

.phone-mockup__card::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--white);
  padding: 10px 0 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  border-radius: 0 0 12px 12px;
}

.phone-mockup__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Decorative SVGs floating around the phone */
.hero__decor {
  position: absolute;
  opacity: 0.15;
  z-index: 0;
}

.hero__decor--palette {
  width: 120px;
  top: -20px;
  right: -40px;
  transform: rotate(-15deg);
}

.hero__decor--brush {
  width: 100px;
  bottom: 20px;
  left: -30px;
  transform: rotate(25deg);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ===== How to Use ===== */
.how-to-use {
  background: var(--warm-gray);
}

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

.step {
  text-align: center;
  padding: 32px 24px;
}

.step__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

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

.step__desc {
  color: #555;
  font-size: 0.95rem;
}

/* ===== Features Grid ===== */
.features {
  background: var(--white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.feature-card__desc {
  color: #555;
  font-size: 0.9rem;
}

/* ===== About ===== */
.about {
  background: var(--secondary);
}

.about__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about__icon {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
}

.about__text {
  font-size: 1.1rem;
  color: #555;
  max-width: 640px;
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

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

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Legal Page ===== */
.legal {
  padding: 80px 0 60px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal p,
.legal ul {
  margin-bottom: 16px;
  color: #444;
}

.legal ul {
  padding-left: 24px;
}

.legal li {
  margin-bottom: 4px;
}

.legal .last-updated {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 24px;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .hero__heading {
    font-size: 2.25rem;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  /* Nav mobile */
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero mobile */
  .hero {
    padding: 48px 0 40px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__heading {
    font-size: 2rem;
  }

  .hero__subtext {
    margin: 0 auto 24px;
  }

  .btn-group {
    justify-content: center;
  }

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  /* Steps mobile */
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step {
    padding: 24px 16px;
  }

  /* Features mobile */
  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
