/* ============================================
   Phonograph Ltd — Corporate Website Styles
   v2.0 — Final Polish Pass
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-bg: #f8f9fb;
  --color-bg-alt: #f0f2f5;
  --color-border: #e2e5ea;
  --color-navy: #1a2340;
  --color-navy-light: #2d3a5c;
  --color-text: #2c3044;
  --color-text-muted: #5c6278;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-accent-light: #dbeafe;
  --color-accent-subtle: #eff6ff;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing — tightened for polish */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3.5rem;
  --space-4xl: 5rem;

  /* Sizing */
  --max-width: 1140px;
  --header-height: 64px;

  /* Misc */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(26, 35, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 35, 64, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 35, 64, 0.1);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-accent-dark);
}

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background-color: var(--color-bg);
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

.section__text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 700px;
  line-height: 1.75;
}

.section__text + .section__text {
  margin-top: var(--space-md);
}

/* Centered section header block */
.section-header--center {
  text-align: center;
}

.section-header--center .section__text {
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

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

/* Logo — image-based */
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo:hover {
  opacity: 0.85;
}

.header__logo-img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.header__link:hover,
.header__link--active {
  color: var(--color-navy);
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.header__link:hover::after,
.header__link--active::after {
  transform: scaleX(1);
}

/* Mobile menu toggle */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-navy);
}

.header__toggle svg {
  display: block;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  background: linear-gradient(165deg, var(--color-white) 0%, var(--color-bg) 50%, var(--color-accent-subtle) 100%);
  overflow: hidden;
}

.hero__decoration {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__decoration--2 {
  top: auto;
  right: auto;
  bottom: -200px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__content {
  position: relative;
}

.hero__title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.065rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.825rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.hero__trust-dot {
  width: 4px;
  height: 4px;
  background: var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Hero Metric Cards --- */
.hero__visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero__dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 420px;
}

.dash-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s ease;
}

.dash-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dash-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
  color: var(--color-accent);
}

.dash-card__header svg {
  flex-shrink: 0;
}

.dash-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.dash-card__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.dash-card__desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-top: var(--space-xs);
}

/* Marketplace badges */
.dash-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-navy-light);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  line-height: 1.4;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn--primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* --- About Highlights --- */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.about-hl {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.about-hl__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  color: var(--color-accent);
}

.about-hl__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.about-hl__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* --- Technology Cards --- */
.tech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.tech-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  transition: border-color var(--transition);
}

.tech-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.06);
  border-radius: 50%;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.tech-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.tech-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* --- Technology Callout --- */
.tech-callout {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.tech-callout__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.tech-callout__text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.tech-callout__text:last-child {
  margin-bottom: 0;
}

/* --- Contact --- */
.contact__card {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact__info {
  margin-top: var(--space-xl);
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.contact__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact__row svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.contact__address {
  font-style: normal;
  line-height: 1.6;
}

.contact__actions {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* --- Operational Workflow --- */
.wf-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.wf-header .section__label {
  display: block;
}

.wf-header .section__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.wf-header .section__text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Flow container */
.wf-flow {
  position: relative;
}

.wf-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.wf-step {
  flex: 1;
  max-width: 240px;
  background: var(--color-white);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;
  padding: 28px 20px 24px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wf-step__num {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0;
}

.wf-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-accent);
  margin-bottom: 16px;
  margin-top: 8px;
}

.wf-step__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 6px;
  line-height: 1.3;
}

.wf-step__desc {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.wf-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 6px;
}

/* Row connector between rows */
.wf-between {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

/* --- Product Categories --- */
.cat-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.cat-col {
  display: flex;
  flex-direction: column;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease;
}

.cat-row:last-child {
  border-bottom: none;
}

.cat-row:hover {
  background: rgba(37, 99, 235, 0.02);
}

.cat-row__img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cat-row__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8722a;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

.cat-row__text {
  flex: 1;
  min-width: 0;
}

.cat-row__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin: 0;
}

.cat-row__desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 3px 0 0;
  padding-left: 12px;
}

/* --- Shipping Reach Section --- */

/* Metric counter */
.map-metric {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.map-metric__value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.map-metric__label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* Map image */
.map-image-wrap {
  margin-top: var(--space-2xl);
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer__company {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
}

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

.footer__meta a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__meta a:hover {
  color: var(--color-accent);
}

.footer__privacy {
  max-width: 640px;
}

.footer__privacy p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  opacity: 0.75;
}

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

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablets & small desktops */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .hero__dashboard {
    max-width: 360px;
  }


  .hero__title {
    font-size: 2.15rem;
  }

  .section__title {
    font-size: 1.6rem;
  }



  .about-highlights {
    grid-template-columns: 1fr;
  }

  .tech-cards {
    grid-template-columns: 1fr 1fr;
  }

  .tech-callout {
    padding: var(--space-xl) var(--space-lg);
  }

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


  .wf-grid {
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
  }

  .wf-step {
    max-width: none;
    flex: 1 1 calc(50% - var(--space-md));
    min-width: 200px;
  }

  .wf-arrow,
  .wf-between {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Mobile nav */
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: var(--space-xl);
    gap: var(--space-sm);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .header__nav--open {
    transform: translateX(0);
  }

  .header__link {
    font-size: 1.05rem;
    padding: var(--space-sm) 0;
  }

  .header__link::after {
    display: none;
  }

  .header__toggle {
    display: block;
  }

  /* Logo mobile */
  .header__logo-img {
    width: 110px;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 0.975rem;
  }

  .hero__decoration {
    width: 300px;
    height: 300px;
    right: -80px;
    top: -40px;
  }

  .hero__decoration--2 {
    display: none;
  }

  .hero__visual {
    display: none;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
  }

  /* Footer */
  .footer__privacy {
    max-width: 100%;
  }

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

  .cat-row__img {
    width: 64px;
    height: 64px;
  }


  .contact__actions {
    flex-direction: column;
  }

  .tech-cards {
    grid-template-columns: 1fr;
  }

  .wf-grid {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .wf-step {
    max-width: none;
    width: 100%;
  }

  .wf-arrow,
  .wf-between {
    display: none;
  }
}
