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

:root {
  --black: #111;
  --white: #fff;
  --gray: #666;
  --light-gray: #999;
  --light: #f7f7f7;
  --border: #e5e5e5;
  --max-width: 1060px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===================== Header ===================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2.5rem;
}

.header__logo {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.header__nav { display: flex; gap: 1.8rem; font-size: 0.9rem; font-weight: 400; }
.header__nav a { opacity: 0.7; transition: opacity 0.2s; }
.header__nav a:hover { opacity: 1; }

/* ===================== Banner strip ===================== */
.banner-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 220px;
  overflow: hidden;
}

.banner-strip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.banner-strip__placeholder {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.banner-strip__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
}

.banner-strip__placeholder:nth-child(1) {
  background: linear-gradient(135deg, #2a2a2a 0%, #444 50%, #222 100%);
}
.banner-strip__placeholder:nth-child(2) {
  background: linear-gradient(120deg, #333 0%, #1a1a1a 60%, #3a3a3a 100%);
}
.banner-strip__placeholder:nth-child(3) {
  background: linear-gradient(150deg, #282828 0%, #3d3d3d 40%, #1f1f1f 100%);
}
.banner-strip__placeholder:nth-child(4) {
  background: linear-gradient(110deg, #353535 0%, #222 55%, #404040 100%);
}

/* ===================== Hero ===================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero__text p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 420px;
}

/* Phone mockup */
.phone-mockup {
  width: 240px;
  margin: 0 auto;
  background: var(--black);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.phone-mockup__screen {
  background: linear-gradient(160deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 22px;
  aspect-ratio: 9/17;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 2rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.phone-mockup__screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: var(--black);
  border-radius: 0 0 14px 14px;
}

.phone-mockup__screen h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.phone-mockup__screen p {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ===================== Portfolio ===================== */
.portfolio {
  padding: 4rem 2.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.portfolio__title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 3rem;
}

.portfolio__row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.portfolio__row--centered {
  justify-content: center;
}

.app-card {
  text-align: center;
  width: 200px;
  display: block;
}

.app-card__name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.app-card__icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ===================== App Store badge ===================== */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--black);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.7rem;
  transition: opacity 0.2s;
  text-decoration: none;
}

.appstore-badge:hover { opacity: 0.8; }

.appstore-badge__icon { width: 16px; height: 16px; flex-shrink: 0; }

.appstore-badge__text { line-height: 1.15; text-align: left; }
.appstore-badge__text small { display: block; font-size: 0.5rem; opacity: 0.85; }
.appstore-badge__text span { display: block; font-size: 0.72rem; font-weight: 600; }

/* ===================== Contact / CTA ===================== */
.contact-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--border);
}

.contact-bar__left { font-weight: 600; font-size: 0.95rem; }
.contact-bar__right {}
.contact-bar__label { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.2rem; }
.contact-bar__email { font-size: 0.85rem; color: var(--gray); }

.cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
}

.cta h2 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ===================== Detail page ===================== */
.detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
}

.detail__back {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.2s;
}
.detail__back:hover { color: var(--black); }

.detail__hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.detail__icon {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.detail__info {}

.detail h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.detail__tagline {
  color: var(--gray);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.detail .appstore-badge {
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 10px;
  gap: 0.5rem;
}
.detail .appstore-badge__icon { width: 22px; height: 22px; }
.detail .appstore-badge__text small { font-size: 0.65rem; }
.detail .appstore-badge__text span { font-size: 0.95rem; }

.detail__body {
  max-width: 760px;
  margin-bottom: 3rem;
}

.detail__body h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.detail__body p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
  color: #333;
}

.detail__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail__feature {
  padding: 1.5rem;
  background: var(--light);
  border-radius: 12px;
}

.detail__feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.detail__feature p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Legal cards on detail pages */
.detail__legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.legal-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: var(--black);
}

.legal-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  border-color: #ccc;
}

.legal-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-card__icon svg { width: 22px; height: 22px; }

.legal-card__text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.legal-card__text p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.45;
  margin-bottom: 0;
}

/* ===================== Legal pages ===================== */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.legal h1 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0.5rem 0 1rem 1.5rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { text-decoration: underline; }

/* ===================== Blog ===================== */
.blog {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.blog h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.blog__subtitle { color: var(--gray); margin-bottom: 2.5rem; }

.blog__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.blog-post { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.blog-post:last-child { border-bottom: none; }
.blog-post__date { font-size: 0.8rem; color: var(--gray); margin-bottom: 0.25rem; }
.blog-post__title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.25rem; }
.blog-post__title a:hover { opacity: 0.6; }
.blog-post__excerpt { font-size: 0.9rem; color: var(--gray); }

/* Blog article */
.article { max-width: 720px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.article__back { display: inline-block; margin-bottom: 2rem; font-size: 0.9rem; color: var(--gray); }
.article__back:hover { color: var(--black); }
.article__date { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.5rem; }
.article h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
.article p { margin-bottom: 1rem; line-height: 1.8; }

/* ===================== Footer ===================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 3.5rem 2.5rem;
  margin-top: 2rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer__brand { font-weight: 600; font-size: 1rem; margin-bottom: 0.6rem; }
.footer__brand-desc { font-size: 0.78rem; color: #888; line-height: 1.5; max-width: 260px; }

.footer__links h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.footer__links ul { list-style: none; }
.footer__links li { margin-bottom: 0.45rem; }
.footer__links a { font-size: 0.85rem; color: #ccc; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }

.footer__contact h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.footer__contact a { font-size: 0.85rem; color: #ccc; display: block; margin-bottom: 0.35rem; transition: color 0.2s; }
.footer__contact a:hover { color: var(--white); }

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
  }
  .hero__text h1 { font-size: 2rem; }
  .hero__text p { max-width: 100%; margin: 0 auto; }
  .phone-mockup { width: 200px; }
  .banner-strip { height: 140px; grid-template-columns: repeat(2, 1fr); }
  .banner-strip__placeholder:nth-child(3),
  .banner-strip__placeholder:nth-child(4) { display: none; }
  .portfolio__row { gap: 2rem; }
  .app-card { width: 160px; }
  .contact-bar { flex-direction: column; gap: 1rem; }
  .cta h2 { font-size: 2rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .header { padding: 1rem 1.5rem; }
  .detail { padding: 2rem 1.5rem 3rem; }
  .detail__hero { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .detail__icon { margin: 0 auto; width: 110px; height: 110px; }
  .detail h1 { font-size: 2rem; }
  .detail__features { grid-template-columns: 1fr; }
  .detail__legal { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portfolio__row { gap: 1.5rem; }
  .app-card { width: 140px; }
  .app-card__icon { width: 72px; height: 72px; border-radius: 16px; }
}
