/* WriteReal — one-page site */

:root {
  --blue: #196fca;
  --blue-dark: #1459a8;
  --blue-light: #4a94d9;
  --blue-pale: #e8f2fc;
  --text: #1e2433;
  --text-muted: #5c6478;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(25, 111, 202, 0.12);
  --shadow-sm: 0 4px 16px rgba(30, 36, 51, 0.08);
  --radius: 12px;
  --radius-pill: 999px;
  --font: "Poppins", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Decorative swirls */
.swirl {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.swirl--hero {
  top: 10%;
  right: -5%;
  width: 320px;
}

.swirl--about {
  top: 20%;
  left: -8%;
  width: 280px;
}

/* Social sidebar */
.social-sidebar {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-sidebar a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-sidebar a:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(25, 111, 202, 0.08);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0;
  gap: 16px;
}

.header__nav {
  display: flex;
  gap: 28px;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
}

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

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge span small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  overflow: hidden;
}

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

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

.hero__content {
  text-align: left;
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  opacity: 0.9;
  max-width: 480px;
  margin: 0;
  font-weight: 400;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero__stores {
  justify-content: center;
}

/* Hero phone mockups */
.hero__phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  min-height: 320px;
}

.phone-mockup {
  background: #0d1117;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.phone-mockup__screen {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}

.phone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-mockup--center {
  width: 210px;
  z-index: 3;
  position: relative;
}

.phone-mockup--center .phone-mockup__screen {
  aspect-ratio: 9 / 19.5;
}

.phone-mockup--side {
  width: 150px;
  z-index: 1;
  opacity: 0.85;
  margin-bottom: 24px;
}

.phone-mockup--side .phone-mockup__screen {
  aspect-ratio: 9 / 19.5;
}

.phone-mockup--left {
  transform: rotate(-8deg) translateX(28px);
  margin-right: -40px;
}

.phone-mockup--right {
  transform: rotate(8deg) translateX(-28px);
  margin-left: -40px;
}

.hero .store-badge {
  background: rgba(255, 255, 255, 0.95);
}

/* Section common */
.section {
  padding: 100px 0;
  position: relative;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section__intro {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

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

.about__content {
  max-width: 720px;
  margin-top: 48px;
}

.about__feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--blue);
}

.about__feature p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about__steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about__step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.about__step h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

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

/* Widget highlight */
.widget-highlight {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--blue-pale);
  border-radius: 24px;
  padding: 48px;
}

.widget-highlight__badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.widget-highlight h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.widget-highlight p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.widget-highlight__image {
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 320px;
  margin-inline: auto;
}

/* Testimonials */
.testimonials {
  background: #f8fafc;
}

.testimonials .section__title,
.testimonials .section__intro {
  text-align: center;
  margin-inline: auto;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-card__quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ */
.faq .section__title {
  text-align: center;
  margin-bottom: 48px;
}

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

.faq__item {
  border-bottom: 1px solid #e8ecf2;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}

.faq__item.is-open .faq__icon {
  background: var(--blue);
  color: var(--white);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item.is-open .faq__answer {
  max-height: 300px;
}

.faq__answer-inner {
  background: #f4f6f9;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Download */
.download__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.download__text p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.download__image {
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin-inline: auto;
}

/* Subscribe */
.subscribe {
  background: var(--blue);
  color: var(--white);
  padding: 48px 0;
}

.subscribe__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.subscribe h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.subscribe__form {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: var(--shadow);
  min-width: min(420px, 100%);
}

.subscribe__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text);
}

.subscribe__input::placeholder {
  color: #aab0be;
}

.subscribe__btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.subscribe__btn:hover {
  background: var(--blue-dark);
}

/* Footer */
.footer {
  background: #f4f6f9;
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.footer__brand h3 {
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer__newsletter {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 4px;
  border: 1px solid #e0e4ea;
}

.footer__newsletter input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

.footer__newsletter button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.footer__col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--blue);
}

.footer__bottom {
  border-top: 1px solid #e0e4ea;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .social-sidebar {
    display: none;
  }

  .widget-highlight,
  .download__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero__content {
    text-align: center;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero {
    padding-top: 200px;
  }

  .widget-highlight {
    padding: 32px;
  }

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

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

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

  .subscribe__form {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .hero__phones {
    min-height: 300px;
    max-width: 100%;
    transform: scale(0.85);
    transform-origin: center bottom;
  }

  .phone-mockup--center {
    width: 200px;
  }

  .phone-mockup--side {
    width: 140px;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }
}
