/* GitPocket Website - Refined Aurora Theme */

:root {
  --bg-base: #050c16;
  --bg-elevated: rgba(11, 22, 39, 0.82);
  --bg-surface: rgba(15, 28, 48, 0.74);
  --text-primary: #f1f5ff;
  --text-secondary: #b6c1d8;
  --text-tertiary: #8d98ae;
  --accent: #35c8a7;
  --accent-strong: #1ca587;
  --highlight: #ffb45b;
  --line: rgba(149, 173, 211, 0.3);
  --shadow: 0 22px 56px rgba(2, 7, 14, 0.46);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --blur-amount: 14px;
  --orb-1: rgba(53, 200, 167, 0.24);
  --orb-2: rgba(255, 180, 91, 0.22);
  --orb-3: rgba(66, 130, 236, 0.2);
  --font-heading: "Sora", "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --cursor-x: 50vw;
  --cursor-y: 30vh;
}

[data-theme="light"] {
  --bg-base: #f3f7fd;
  --bg-elevated: rgba(255, 255, 255, 0.8);
  --bg-surface: rgba(255, 255, 255, 0.72);
  --text-primary: #122039;
  --text-secondary: #3f4e6b;
  --text-tertiary: #5b6984;
  --accent: #0b9d82;
  --accent-strong: #077864;
  --highlight: #d18326;
  --line: rgba(113, 134, 168, 0.32);
  --shadow: 0 20px 48px rgba(18, 30, 54, 0.12);
  --orb-1: rgba(11, 157, 130, 0.16);
  --orb-2: rgba(209, 131, 38, 0.16);
  --orb-3: rgba(64, 116, 194, 0.15);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--text-primary);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(53, 200, 167, 0.22), transparent 55%),
    radial-gradient(1000px 700px at 100% 0%, rgba(255, 180, 91, 0.2), transparent 58%),
    linear-gradient(165deg, #060e1a 0%, #0a172b 55%, #081223 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(11, 157, 130, 0.12), transparent 54%),
    radial-gradient(980px 680px at 100% 0%, rgba(209, 131, 38, 0.13), transparent 58%),
    linear-gradient(160deg, #f4f8ff 0%, #edf3fc 56%, #e9f0fa 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: radial-gradient(460px 460px at var(--cursor-x) var(--cursor-y), rgba(77, 214, 184, 0.14), transparent 68%);
  transition: opacity 0.2s ease;
}

[data-theme="light"] body::before {
  background: radial-gradient(420px 420px at var(--cursor-x) var(--cursor-y), rgba(11, 157, 130, 0.1), transparent 70%);
}

body::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.18;
}

[data-theme="light"] body::after {
  background-image: linear-gradient(rgba(17, 36, 67, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 36, 67, 0.04) 1px, transparent 1px);
  opacity: 0.25;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

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

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

a:focus-visible,
button:focus-visible,
.app-store-button:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 6px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--highlight);
  color: #101722;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 999;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

@supports not (backdrop-filter: blur(12px)) {
  .site-nav {
    background: rgba(6, 15, 27, 0.94);
  }

  [data-theme="light"] .site-nav {
    background: rgba(255, 255, 255, 0.95);
  }
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.nav-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.76);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-icon {
  font-size: 1.02rem;
}

.theme-label {
  display: none;
}

.container {
  width: min(1060px, 100% - 2.5rem);
  margin: 0 auto;
  padding-bottom: 1rem;
}

#main-content {
  scroll-margin-top: 110px;
}

header {
  text-align: center;
  padding: 7.6rem 1.25rem 0.5rem;
}

.logo {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 10px 24px rgba(57, 195, 168, 0.26));
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.1;
  background: linear-gradient(110deg, var(--text-primary) 0%, #98ffee 25%, #ffe0ba 86%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] h1 {
  background: linear-gradient(108deg, #102448 0%, #0d9e83 34%, #b86f1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 2.5vw, 1.55rem);
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.hero-lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.9vw, 1.14rem);
}

.hero-highlights {
  margin: 1.3rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .hero-pill {
  background: rgba(255, 255, 255, 0.75);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 680;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

p {
  margin-bottom: 0.95rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.8rem 0 2rem;
}

.features h2,
.features .section-intro {
  grid-column: 1 / -1;
  text-align: center;
  justify-self: center;
}

.section-intro {
  max-width: 56ch;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.feature {
  position: relative;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 35%, var(--highlight) 100%);
  opacity: 0.72;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 216, 190, 0.48);
  box-shadow: 0 24px 62px rgba(3, 11, 22, 0.45);
}

[data-theme="light"] .feature:hover {
  box-shadow: 0 20px 52px rgba(22, 39, 67, 0.18);
}

@supports not (backdrop-filter: blur(12px)) {
  .feature,
  .content-section,
  .app-store-soon,
  footer {
    background: rgba(9, 17, 31, 0.95);
  }

  [data-theme="light"] .feature,
  [data-theme="light"] .content-section,
  [data-theme="light"] .app-store-soon,
  [data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.94);
  }
}

.feature-icon {
  font-size: 1.78rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.content-section {
  margin: 1rem 0;
  padding: clamp(1rem, 2.5vw, 1.7rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-surface);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  box-shadow: var(--shadow);
}

.content-section p {
  max-width: 68ch;
  color: var(--text-secondary);
}

.content-section h3 {
  margin-top: 1.15rem;
}

.content-section ul {
  margin: 0.4rem 0 1rem 1.2rem;
}

.content-section li {
  margin-bottom: 0.52rem;
  color: var(--text-secondary);
}

.cta {
  margin: 2.2rem 0 0.8rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(140deg, rgba(18, 41, 70, 0.72) 8%, rgba(18, 37, 61, 0.45) 55%, rgba(88, 50, 16, 0.32) 100%);
  box-shadow: var(--shadow);
}

[data-theme="light"] .cta {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.78) 8%, rgba(236, 248, 245, 0.9) 55%, rgba(255, 241, 223, 0.87) 100%);
}

.cta h2 {
  margin-bottom: 0.3rem;
}

.app-store-soon {
  margin: 0.65rem auto 0;
  max-width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px dashed rgba(159, 197, 255, 0.5);
  background: rgba(5, 14, 27, 0.45);
}

[data-theme="light"] .app-store-soon {
  border-color: rgba(11, 122, 102, 0.4);
  background: rgba(255, 255, 255, 0.85);
}

.app-store-soon img,
.app-store-button img {
  display: block;
  height: 54px;
  width: auto;
}

.coming-soon-label {
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.cta-note {
  margin-top: 0.6rem;
  color: var(--text-secondary);
}

.app-store-button {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-store-button:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

footer {
  margin-top: 3rem;
  padding: 1.6rem 1rem 1.8rem;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links a.current-page,
.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.disclaimer {
  max-width: 54ch;
  margin: 0 auto 0.45rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  width: min(42vw, 410px);
  height: min(42vw, 410px);
  top: -140px;
  left: -90px;
  background: var(--orb-1);
  animation: drift-a 18s ease-in-out infinite;
}

.orb-2 {
  width: min(38vw, 360px);
  height: min(38vw, 360px);
  right: -120px;
  top: 22%;
  background: var(--orb-2);
  animation: drift-b 21s ease-in-out infinite;
}

.orb-3 {
  width: min(32vw, 300px);
  height: min(32vw, 300px);
  left: 20%;
  bottom: -130px;
  background: var(--orb-3);
  animation: drift-c 24s ease-in-out infinite;
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 36px);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-35px, 18px);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(22px, -26px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.fade-in {
  animation: rise-in 0.7s ease-out forwards;
}

.fade-in-delay-1 {
  opacity: 0;
  animation: rise-in 0.7s ease-out 0.16s forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: rise-in 0.7s ease-out 0.26s forwards;
}

.fade-in-delay-3 {
  opacity: 0;
  animation: rise-in 0.7s ease-out 0.34s forwards;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .container {
    width: min(1040px, 100% - 1.8rem);
  }

  .feature {
    padding: 1rem;
  }

  .content-section {
    border-radius: 18px;
  }
}

@media (max-width: 700px) {
  .site-nav {
    padding: 12px 14px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  header {
    padding-top: 7rem;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: 2.2rem;
  }

  .cta {
    padding: 1.1rem 1rem;
  }

  .footer-links {
    gap: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-pill {
    font-size: 0.8rem;
  }

  .app-store-soon {
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    max-width: 290px;
  }

  .footer-links a {
    display: block;
    width: 100%;
  }

  .orb-3 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
