/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F,
    U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* greek */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1,
    U+03A3-03FF;
}

/* vietnamese */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/IBMPlexSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================================
   Design Tokens
   ============================================================================ */

:root {
  --font-ibm-plex: 'IBM Plex Sans', -apple-system, 'system-ui', sans-serif;
  --background: #F7F7F7;
  --foreground: #000000;
  --primary: #24B47E;
  --muted-foreground: #8F8F8F;
  --border: #D4D4D4;
  --radius: 0.625rem;
  --radius-lg: 1.125rem;
  --radius-full: 1.5rem;
  --cta-shadow: #1A9960;
}

.dark {
  --background: #121212;
  --foreground: #FFFFFF;
  --primary: #2C9C6A;
  --muted-foreground: #6B6B6B;
  --border: #2E2E2E;
  --cta-shadow: #1F6546;
}

/* ============================================================================
   Reset & Base
   ============================================================================ */

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

html {
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: var(--font-ibm-plex);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-ibm-plex);
}

a {
  color: inherit;
}

a:active,
button:active,
[role="button"]:active {
  opacity: 0.7;
}

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

/* ============================================================================
   Shared Components
   ============================================================================ */

/* CTA Button */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--cta-shadow);
  box-shadow: 0 4px 0 var(--cta-shadow);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Input Group */
.input-group {
  display: flex;
  align-items: center;
  background-color: var(--background);
  border: 0.15rem solid color-mix(in srgb, var(--foreground) 10%, transparent);
  border-radius: var(--radius);
  height: 55px;
  width: 340px;
  padding: 0 16px;
  gap: 4px;
}

.input-group .input-at {
  color: var(--muted-foreground);
  flex-shrink: 0;
  font-size: 18px;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foreground);
  font-size: 18px;
}

.input-group input::placeholder {
  color: var(--muted-foreground);
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  height: 509px;
  width: 250px;
}

.phone-mockup-screen {
  position: absolute;
  top: 2.13%;
  right: 5.24%;
  bottom: 2.46%;
  left: 5.24%;
  overflow: hidden;
}

.phone-mockup-screen img,
.product-card-image img {
  object-fit: cover;
}

.phone-frame-icon {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .phone-mockup {
    height: 612px;
    width: 300px;
  }
}

/* ============================================================================
   Header
   ============================================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 20px;
  background-color: var(--background);
}

@media (min-width: 768px) {
  .header {
    padding-left: 30px;
    padding-right: 30px;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.3px;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
}

.header-logo-icon {
  position: relative;
  top: 0.6px;
}

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

.header-cta {
  height: 55px;
  padding: 0 20px;
  font-size: 16px;
}

.header-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.15rem;
  background-color: color-mix(in srgb, var(--foreground) 10%, transparent);
  opacity: 0;
}

.header.scrolled .header-divider {
  opacity: 1;
}

/* ============================================================================
   Theme Toggle
   ============================================================================ */

.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem 2rem;
}

.footer-inner {
  width: 100%;
  max-width: 500px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}

.footer-icon {
  filter: invert(1);
}

.dark .footer-icon {
  filter: none;
}

.footer-copyright {
  margin-top: 30px;
  color: var(--foreground);
  font-size: 18px;
}

.footer-bottom {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom a {
  display: flex;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
}

.footer-brand-icon {
  position: relative;
  top: 0.6px;
}
