/* ==========================================================================
   Ma Styla — Landing Page Stylesheet
   Design system adapted from the Flutter app
   ========================================================================== */

/* --------------------------------------------------------------------------
   @font-face
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Design Tokens (CSS custom properties)
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --color-bg:             #0D0B10;
  --color-surface:        #1A161F;
  --color-text-primary:   #EDE8F2;
  --color-text-secondary: #B8B0C4;
  --color-accent:         #A855F7;

  /* Logo palette */
  --color-cyan:   #00E5FF;
  --color-green:  #76FF03;
  --color-yellow: #F9E400;
  --color-pink:   #FF1493;

  /* Typography */
  --font-heading: 'Geist', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-s:   8px;
  --space-m:   16px;
  --space-l:   24px;
  --space-xl:  32px;
  --space-xxl: 48px;

  /* Border radius */
  --radius-sm:   12px;
  --radius-card: 36px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --------------------------------------------------------------------------
   Layout — constrained center column
   -------------------------------------------------------------------------- */

header,
main,
footer {
  width: 100%;
  max-width: 600px;
  padding-left: var(--space-l);
  padding-right: var(--space-l);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-l);
}

header img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

header span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   Main
   -------------------------------------------------------------------------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Hero Image
   -------------------------------------------------------------------------- */

.hero {
  width: 100%;
  margin-bottom: var(--space-xl);
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow:
    var(--shadow-card),
    0 0 60px 8px rgba(168, 85, 247, 0.12),
    0 0 120px 20px rgba(168, 85, 247, 0.06);
}

/* --------------------------------------------------------------------------
   Tagline
   -------------------------------------------------------------------------- */

h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  text-align: center;
  margin-bottom: var(--space-xl);

  /* Gradient text — accent palette sweep */
  background: linear-gradient(
    135deg,
    var(--color-cyan)   0%,
    var(--color-accent)  50%,
    var(--color-pink)   100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   Download Badges
   -------------------------------------------------------------------------- */

.download-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m);
  margin-bottom: var(--space-xxl);
}

.download-badges a {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.download-badges a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.download-badges a:active {
  transform: scale(0.97);
}

.download-badges img {
  width: 148px;
  height: auto;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  padding-top: var(--space-l);
  padding-bottom: var(--space-xl);
  text-align: center;
}

footer p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Very small screens — stack badges vertically */
@media (max-width: 379px) {
  .download-badges {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
}

/* Slightly larger phones */
@media (min-width: 380px) and (max-width: 479px) {
  h1 {
    font-size: 32px;
  }
}

/* Tablets and up — a bit more breathing room */
@media (min-width: 768px) {
  header {
    padding-top: 64px;
  }

  h1 {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .download-badges img {
    width: 155px;
  }
}
