/* ==========================================================================
   DIALX PRODUCT WEBSITE
   Clean responsive layout for a focused Android app landing page.
   ========================================================================== */
:root {
  --ink: #fff8e7;
  --muted: rgba(255, 248, 231, 0.68);
  --line: rgba(255, 248, 231, 0.12);
  --paper: #12110f;
  --surface: #181713;
  --surface-warm: #211d16;
  --surface-green: #171d15;
  --brand: #ffbf00;
  --brand-strong: #ffd457;
  --green: #8a9b52;
  --charcoal: #12110f;
  --phone: #151515;
  --phone-edge: #343434;
  --radius: 24px;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-phone: 0 30px 80px rgba(0, 0, 0, 0.48);
  --font-body: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-medium: 360ms;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 191, 0, 0.2), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(138, 155, 82, 0.18), transparent 30rem),
    linear-gradient(180deg, #191610 0%, var(--paper) 32rem);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.material-symbols-rounded {
  display: inline-block;
  font-family: "Material Symbols Rounded";
  font-size: 20px;
  font-style: normal;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 0 20px;
  transition: transform var(--dur-medium) var(--ease-out);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1160px, 100%);
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 248, 231, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 248, 231, 0.13), rgba(255, 248, 231, 0.05)),
    rgba(18, 17, 15, 0.58);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 248, 231, 0.12);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
}

.site-header.is-scrolled .header-inner {
  background:
    linear-gradient(135deg, rgba(255, 248, 231, 0.15), rgba(255, 248, 231, 0.06)),
    rgba(18, 17, 15, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 248, 231, 0.13);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 860;
  line-height: 1;
  letter-spacing: 0;
}

.brand-name em {
  color: var(--brand-strong);
  font-style: normal;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: 4px;
}

.header-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 9px 11px;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.header-nav a:hover {
  background: rgba(255, 248, 231, 0.1);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.pill-btn-primary {
  background: var(--brand);
  color: #16130d;
  box-shadow: 0 12px 30px rgba(255, 191, 0, 0.26);
}

.pill-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(255, 191, 0, 0.34);
}

.pill-btn-ghost {
  border-color: rgba(255, 248, 231, 0.16);
  background: rgba(255, 248, 231, 0.06);
  color: var(--ink);
}

.pill-btn-ghost:hover {
  background: rgba(255, 248, 231, 0.1);
}

.pill-btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1rem;
}

.cta-row,
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Layout */
.panel {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(64px, 8vw, 100px) 22px;
}

.panel-hero {
  padding-top: 96px;
  padding-bottom: 48px;
}

.panel-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.hero-grid,
.customize-grid,
.fastdial-grid,
.history-grid,
.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
}

.customize-grid,
.history-grid {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1fr);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

.section-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5vw, 4rem);
  font-weight: 940;
  letter-spacing: 0;
  line-height: 0.96;
}

.section-body {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-content .cta-row {
  margin-top: 34px;
}

.panel-hero .section-body {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

/* Visuals */
.hero-visual,
.customize-visual,
.fastdial-visual,
.history-visual,
.control-visual,
.panorama-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}

.hero-logo-container {
  position: relative;
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 12px 36px rgba(255, 191, 0, 0.45));
  z-index: 5;
}

.hero-logo-blob {
  position: absolute;
  inset: 0;
  background-color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-blob.blob-shape-gem {
  clip-path: url(#shape-gem);
  -webkit-clip-path: url(#shape-gem);
}

.hero-logo-icon {
  font-size: 80px;
  color: #1c1917;
  line-height: 1;
}

.m3-blob {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
  filter: blur(0.2px) saturate(120%);
  animation: float 8s ease-in-out infinite alternate;
}

.blob-shape-slanted {
  clip-path: url(#shape-slanted);
}

.blob-shape-arch {
  clip-path: url(#shape-arch);
}

.blob-shape-arrow {
  clip-path: url(#shape-arrow);
}

.blob-shape-gem {
  clip-path: url(#shape-gem);
}

.blob-shape-cookie9 {
  clip-path: url(#shape-cookie9);
}

.blob-shape-bun {
  clip-path: url(#shape-bun);
}

.blob-shape-ghostish {
  clip-path: url(#shape-ghostish);
}

.blob-shape-sunny {
  clip-path: url(#shape-sunny);
}

@keyframes float {
  0% {
    translate: 0 0;
    rotate: 0deg;
  }

  100% {
    translate: 0 -18px;
    rotate: 8deg;
  }
}

@keyframes float-reverse {
  0% {
    translate: 0 0;
    rotate: 0deg;
  }

  100% {
    translate: 0 18px;
    rotate: -8deg;
  }
}

.floating-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background-color: #fbf5e5;
  color: #1c1917;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  z-index: 10;
  animation: float 6s ease-in-out infinite alternate;
}

.floating-icon.large {
  width: 56px;
  height: 56px;
}

.floating-icon span {
  font-size: 24px;
}

.phone-mockup {
  position: relative;
  z-index: 3;
  width: clamp(190px, 23vw, 278px);
  aspect-ratio: 9 / 19.8;
  padding: 6px;
  overflow: hidden;
  border: 4px solid var(--phone-edge);
  border-radius: 34px;
  background: var(--phone);
  box-shadow: var(--shadow-phone);
  transition: transform var(--dur-medium) var(--ease-out), box-shadow var(--dur-medium) var(--ease-out);
}

.phone-mockup:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.54);
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #050505;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.panel-incall {
  background: linear-gradient(180deg, #161a13 0%, var(--surface-green) 100%);
}

.incall-grid {
  display: grid;
  gap: 48px;
}

.panorama-container {
  min-height: 650px;
}

.panorama-container::before {
  width: min(92vw, 760px);
  height: 420px;
  aspect-ratio: auto;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.09), rgba(255, 191, 0, 0.12));
  transform: rotate(0);
}

.panorama-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 860px);
  min-height: 600px;
}

.panorama-phone {
  position: absolute;
}

.panorama-phone.left {
  left: 10%;
  transform: rotate(-4deg) translateY(34px);
  z-index: 2;
}

.panorama-phone.center {
  transform: scale(1.05) translateY(-14px);
  z-index: 4;
}

.panorama-phone.right {
  right: 10%;
  transform: rotate(4deg) translateY(34px);
  z-index: 2;
}

.incall-text-bottom {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.incall-text-bottom .section-body {
  margin-right: auto;
  margin-left: auto;
}

.panel-customize,
.download-section {
  background: var(--surface);
}

.customize-overlap {
  position: relative;
  width: min(100%, 430px);
  min-height: 580px;
}

.overlap-phone {
  position: absolute;
}

.overlap-phone.back {
  top: 78px;
  left: 0;
  transform: rotate(-3deg);
}

.overlap-phone.front {
  top: 10px;
  right: 0;
  transform: rotate(3deg);
}

.panel-fastdial,
.panel-control {
  background: var(--charcoal);
  color: #fffaf0;
}

.panel-fastdial .section-body,
.panel-control .section-body,
.site-footer {
  color: rgba(255, 250, 240, 0.74);
}

.panel-fastdial .pill-btn-ghost,
.panel-control .pill-btn-ghost {
  border-color: rgba(255, 250, 240, 0.18);
  background: rgba(255, 250, 240, 0.06);
  color: #fffaf0;
}

.panel-fastdial .fastdial-visual::before,
.panel-control .control-visual::before {
  background: linear-gradient(145deg, rgba(255, 191, 0, 0.28), rgba(255, 250, 240, 0.08));
}

.panel-history {
  background: linear-gradient(180deg, #1c1812 0%, var(--surface-warm) 100%);
}

.history-phone-offset {
  transform: rotate(-3deg);
}

/* Download */
.download-section {
  padding: clamp(76px, 10vw, 126px) 22px;
  border-top: 1px solid var(--line);
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.dl-logo {
  width: 86px;
  height: 86px;
  margin-bottom: 26px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.download-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
}

.download-inner p {
  max-width: 520px;
  margin: 18px auto 32px;
  color: var(--muted);
  font-size: 1.08rem;
}

.store-buttons {
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 250, 240, 0.08);
  padding: 28px 22px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-nav a,
.footer-copy {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: #fffaf0;
}

.footer-copy {
  margin: 0;
}

/* Policy / Terms Pages */
.policy-hero {
  padding: 132px 22px 56px;
  background: var(--charcoal);
  color: #fffaf0;
  border-bottom: 1px solid rgba(255, 250, 240, 0.08);
}

.policy-hero>* {
  width: min(850px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-hero h1 {
  margin: 8px auto 10px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
}

.policy-hero p {
  color: rgba(255, 250, 240, 0.72);
}

.policy-content {
  width: min(850px, 100%);
  margin: 0 auto;
  padding: 52px 22px 96px;
}

.policy-content h2 {
  margin: 32px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 860;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.policy-content ul {
  padding-left: 22px;
}

.policy-content strong,
.policy-content a {
  color: var(--ink);
}

.policy-content a {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
}

/* Motion */
.reveal-prep {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
}

.reveal-prep.in-view {
  opacity: 1;
  transform: none;
}

.panorama-phone.left.reveal-prep.in-view {
  transform: rotate(-4deg) translateY(34px);
}

.panorama-phone.center.reveal-prep.in-view {
  transform: scale(1.05) translateY(-14px);
}

.panorama-phone.right.reveal-prep.in-view {
  transform: rotate(4deg) translateY(34px);
}

.overlap-phone.back.reveal-prep.in-view {
  transform: rotate(-3deg);
}

.overlap-phone.front.reveal-prep.in-view {
  transform: rotate(3deg);
}

.history-phone-offset.reveal-prep.in-view {
  transform: rotate(-3deg);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1080px) {
  .header-nav {
    gap: 0;
  }

  .header-nav a {
    font-size: 0.84rem;
    padding-inline: 8px;
  }

  .hero-grid,
  .fastdial-grid,
  .control-grid,
  .customize-grid,
  .history-grid {
    grid-template-columns: 1fr 0.82fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    top: 10px;
    padding-inline: 12px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 8px 9px 8px 14px;
  }

  .header-nav {
    display: none;
  }

  .header-actions .pill-btn {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.88rem;
  }

  .panel {
    padding: 74px 18px;
  }

  .panel-hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-grid,
  .customize-grid,
  .fastdial-grid,
  .history-grid,
  .control-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .customize-visual,
  .history-visual {
    order: 2;
  }

  .hero-content {
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }

  .section-body {
    margin-right: auto;
    margin-left: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-visual,
  .customize-visual,
  .fastdial-visual,
  .history-visual,
  .control-visual {
    min-height: 420px;
  }

  .panorama-container {
    min-height: 560px;
  }

  .panorama-phone.left {
    left: 6%;
  }

  .panorama-phone.right {
    right: 6%;
  }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at 8% 0%, rgba(255, 191, 0, 0.18), transparent 22rem),
      linear-gradient(180deg, #191610 0%, var(--paper) 28rem);
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.16rem;
  }

  .header-actions .pill-btn span {
    display: none;
  }

  .panel {
    padding: 64px 16px;
  }

  .panel-hero {
    padding-top: 96px;
  }

  .section-headline {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .section-body {
    font-size: 1rem;
  }

  .pill-btn,
  .pill-btn-lg {
    width: 100%;
    min-height: 50px;
    padding-inline: 18px;
  }

  .cta-row,
  .store-buttons {
    width: 100%;
  }

  .hero-visual,
  .fastdial-visual,
  .history-visual,
  .control-visual {
    min-height: 365px;
  }

  .phone-mockup {
    width: min(64vw, 232px);
    border-radius: 30px;
  }

  .phone-screen {
    border-radius: 22px;
  }

  .hero-logo-container {
    width: 150px;
    height: 150px;
  }

  .hero-logo-icon {
    font-size: 64px;
  }

  .floating-icon {
    width: 40px;
    height: 40px;
  }

  .floating-icon.large {
    width: 48px;
    height: 48px;
  }

  .floating-icon span {
    font-size: 20px;
  }

  .panorama-container {
    justify-content: flex-start;
    min-height: auto;
    margin-inline: -16px;
    overflow-x: auto;
    padding: 28px 16px 34px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .panorama-container::-webkit-scrollbar {
    display: none;
  }

  .panorama-container::before {
    left: 16px;
    width: calc(100% - 32px);
    height: 260px;
  }

  .panorama-phones {
    position: relative;
    justify-content: flex-start;
    width: max-content;
    min-height: auto;
    gap: 18px;
    padding: 0 16px;
  }

  .panorama-phone,
  .panorama-phone.left,
  .panorama-phone.center,
  .panorama-phone.right,
  .panorama-phone.left.reveal-prep.in-view,
  .panorama-phone.center.reveal-prep.in-view,
  .panorama-phone.right.reveal-prep.in-view {
    position: relative;
    left: auto;
    right: auto;
    flex: 0 0 auto;
    scroll-snap-align: center;
    transform: none;
  }

  .customize-visual {
    min-height: 390px;
  }

  .customize-overlap {
    width: min(100%, 310px);
    min-height: 360px;
  }

  .overlap-phone {
    width: min(48vw, 176px);
  }

  .overlap-phone.back {
    top: 74px;
  }

  .overlap-phone.front {
    top: 8px;
  }

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

@media (max-width: 420px) {
  .site-header {
    padding-inline: 8px;
  }

  .header-inner {
    gap: 8px;
    padding-left: 11px;
  }

  .header-actions .pill-btn {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 0.82rem;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .section-headline {
    font-size: clamp(2.05rem, 13vw, 2.9rem);
  }

  .phone-mockup {
    width: min(68vw, 210px);
  }

  .customize-overlap {
    width: 278px;
  }

  .overlap-phone {
    width: 158px;
  }
}