@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #17182c;
  --purple: #7885f5;
  --purple-dark: #5967dc;
  --blue: #d4e8ff;
  --white: #ffffff;
  --line: rgba(23, 24, 44, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: "Rubik", Arial, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.hero {
  min-height: 100svh;
  padding: 22px clamp(22px, 4vw, 64px) 38px;
  overflow: hidden;
  background: radial-gradient(circle at 14% 24%, rgba(255,255,255,.86), transparent 30%), var(--blue);
}

.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1280px; margin: 0 auto; }
.brand { width: 166px; padding: 10px 14px; border-radius: 0 0 18px 18px; overflow: hidden; background: var(--white); box-shadow: 0 12px 34px rgba(89,103,220,.12); }
.brand img { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-link { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.language-switch { width: 46px; height: 46px; border: 1px solid rgba(23,24,44,.3); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 800; transition: .2s ease; }
.language-switch:hover, .language-switch:focus-visible { background: var(--ink); color: white; outline: none; transform: rotate(8deg); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .7fr); align-items: center; gap: clamp(44px, 7vw, 100px); max-width: 1180px; margin: clamp(28px, 4vh, 42px) auto 0; }
.eyebrow { margin: 0 0 20px; color: var(--purple-dark); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.055em; line-height: .98; }
h1 { max-width: 760px; font-size: clamp(54px, 5.7vw, 88px); }
h1 em { color: var(--purple); font-style: normal; }
h2 { font-size: clamp(46px, 5.4vw, 82px); }
.intro { max-width: 590px; margin: 26px 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.primary-button, .secondary-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.primary-button { justify-content: space-between; gap: 34px; min-width: 230px; padding: 15px 21px; background: var(--ink); color: white; }
.secondary-button { min-width: 156px; padding: 15px 24px; border: 2px solid var(--ink); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.primary-button:hover { background: var(--purple-dark); }
.secondary-button:hover { background: white; border-color: white; }

.phone-stage { position: relative; min-height: 610px; display: grid; place-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 470px; height: 470px; border-radius: 50%; background: var(--purple); opacity: .12; }
.hero-phone-render { position: relative; z-index: 1; display: block; width: min(112%, 650px); height: auto; filter: drop-shadow(0 34px 45px rgba(32, 36, 82, .22)); }

.app-section { max-width: 1240px; margin: 0 auto; padding: clamp(88px, 10vw, 145px) clamp(22px, 4vw, 64px); }
.section-lead { display: grid; grid-template-columns: .9fr 1fr; column-gap: 8vw; align-items: end; margin-bottom: 64px; }
.section-lead .eyebrow { grid-column: 1 / -1; }
.section-lead p:last-child { max-width: 520px; margin: 0 0 6px; font-size: 19px; line-height: 1.55; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-dot { display: block; width: 11px; height: 11px; margin-bottom: 52px; border-radius: 50%; background: var(--purple); }
.feature-card h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.035em; }
.feature-card p { margin: 0; color: #626373; font-size: 15px; line-height: 1.5; }

.download-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); align-items: center; gap: 7vw; max-width: 1240px; margin: 0 auto clamp(88px, 10vw, 145px); padding: clamp(50px, 7vw, 90px); border-radius: 46px; background: var(--purple); color: white; overflow: hidden; }
.download-copy .eyebrow { color: white; opacity: .82; }
.download-copy > p:last-of-type { max-width: 630px; margin: 26px 0; font-size: 18px; line-height: 1.55; }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.store-button { min-width: 180px; padding: 14px 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 16px; background: rgba(255,255,255,.1); }
.store-button small, .store-button strong { display: block; }
.store-button small { margin-bottom: 4px; font-size: 12px; opacity: .8; }
.store-button strong { font-size: 17px; }
.download-phone { justify-self: center; display: flex; width: 230px; height: 460px; align-items: center; flex-direction: column; justify-content: center; border: 10px solid var(--ink); border-radius: 44px; background: var(--blue); color: var(--purple-dark); box-shadow: 0 30px 70px rgba(23,24,44,.26); transform: rotate(6deg); }
.download-phone img { width: 92px; margin-bottom: 24px; border-radius: 24px; }
.download-phone strong { font-size: 38px; letter-spacing: -.05em; }
.download-phone span { margin-top: 5px; font-size: 14px; font-weight: 600; }

.studio-section { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 680px; background: var(--purple); color: white; }
.studio-carousel { position: relative; min-height: 640px; overflow: hidden; background: #27263a; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.025); transition: opacity .7s ease, transform 5s ease; }
.carousel-slide.is-active { opacity: 1; transform: scale(1); }
.carousel-controls { position: absolute; z-index: 2; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: center; justify-content: space-between; }
.carousel-controls > button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: white; color: var(--ink); cursor: pointer; font-size: 19px; box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.carousel-dots { display: flex; gap: 8px; padding: 10px 13px; border-radius: 999px; background: rgba(23,24,44,.55); backdrop-filter: blur(8px); }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.carousel-dots button.is-active { width: 24px; border-radius: 999px; background: white; }
.studio-copy { align-self: center; padding: clamp(48px, 7vw, 110px); }
.studio-copy .eyebrow { color: white; opacity: .8; }

.contact-section { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(520px, 1fr); gap: clamp(48px, 7vw, 100px); max-width: 1240px; margin: 0 auto; padding: clamp(90px, 11vw, 160px) clamp(22px, 4vw, 64px); background: white; }
.contact-heading { align-self: start; position: sticky; top: 40px; }
.contact-heading h2 { max-width: 8ch; font-size: clamp(52px, 5.2vw, 82px); }
.contact-list { border-top: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; min-height: 150px; padding: 24px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: .2s ease; }
.contact-row:hover { padding-left: 18px; color: var(--purple-dark); }
.contact-row small { display: block; margin-bottom: 12px; color: #696a79; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-row strong { display: block; min-width: 0; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.035em; line-height: 1.08; overflow-wrap: anywhere; }
.row-arrow { font-size: 26px; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; padding: 46px clamp(22px, 4vw, 64px); background: var(--purple); color: white; }
footer img { width: 74px; border-radius: 18px; }
footer p { margin: 0; font-size: clamp(26px, 4vw, 52px); font-weight: 800; letter-spacing: -.045em; }
footer span { font-size: 12px; opacity: .8; }

@media (min-width: 821px) and (max-height: 760px) {
  .hero-grid { margin-top: 22px; }
  h1 { font-size: clamp(50px, 5vw, 72px); }
  .intro { margin: 18px 0; font-size: 16px; }
  .phone-stage { min-height: 500px; }
  .hero-phone-render { width: min(105%, 540px); }
}

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-section { margin-inline: 22px; }
}

@media (max-width: 820px) {
  .hero { min-height: auto; padding-bottom: 70px; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 54px; }
  .phone-stage { min-height: 520px; margin-top: 12px; }
  .section-lead { grid-template-columns: 1fr; gap: 28px; }
  .download-section { grid-template-columns: 1fr; border-radius: 34px; }
  .download-phone { display: none; }
  .studio-section { grid-template-columns: 1fr; }
  .studio-copy { order: -1; }
  .studio-carousel { min-height: 560px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-heading { position: static; }
  footer { grid-template-columns: auto 1fr; }
  footer span { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero { padding-inline: 18px; }
  .brand { width: 128px; padding: 8px 10px; border-radius: 0 0 15px 15px; }
  .header-actions { gap: 14px; }
  .header-link { font-size: 10px; }
  .language-switch { width: 40px; height: 40px; }
  h1 { font-size: clamp(44px, 13vw, 66px); line-height: 1.03; }
  h2 { font-size: clamp(42px, 12vw, 62px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-button, .secondary-button { width: 100%; }
  .phone-stage { min-height: 410px; }
  .phone-stage::before { width: 330px; height: 330px; }
  .hero-phone-render { width: min(112%, 440px); }
  .app-section, .contact-section { padding-inline: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 190px; }
  .download-section { margin-inline: 14px; padding: 48px 22px; }
  .store-button { width: 100%; }
  .studio-section { min-height: 0; }
  .studio-carousel { min-height: 500px; }
  .studio-copy { padding: 64px 20px; }
  .contact-row { min-height: 130px; gap: 12px; }
  .contact-row strong { font-size: 23px; }
  footer { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .language-switch, .primary-button, .secondary-button, .contact-row, .carousel-slide { transition: none; }
}
