/*
* LittleLink — Enhanced
* https://littlelink.io
* Free to use under the MIT license
*/

/* ── Design Tokens ────────────────────────────── */
:root {
  font-size: 16px;

  --scale-0: 1rem;
  --scale-1: 1.25rem;
  --scale-2: 1.563rem;
  --scale-3: 1.953rem;
  --scale-4: 2.441rem;
  --scale-5: 3.052rem;

  --spacing-xs: 0.5rem;
  --spacing-s: 1rem;
  --spacing-m: 1.5rem;
  --spacing-l: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --bg-base: #08090d;
  --text-primary: #e8e8ed;
  --text-muted: #a1a1aa;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.8s;
}

/* ── Keyframes ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, -50px); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-35px, 40px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 30px var(--accent-dim), 0 0 60px rgba(6, 182, 212, 0.04); }
  50%      { box-shadow: 0 0 44px var(--accent-dim), 0 0 80px rgba(6, 182, 212, 0.07); }
}

/* ── Background Atmosphere ────────────────────── */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-atmosphere::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, transparent 70%);
  top: -15%;
  right: -15%;
  animation: drift1 20s ease-in-out infinite;
}

.bg-atmosphere::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.04) 0%, transparent 70%);
  bottom: -10%;
  left: -15%;
  animation: drift2 28s ease-in-out infinite;
}

/* ── Layout ───────────────────────────────────── */
.container {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  text-align: center;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-m) 0;
  box-sizing: border-box;
}

.container-left {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  text-align: left;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.container-left p {
  margin-bottom: 1rem;
}

.column {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 25rem) {
  .container {
    width: 85%;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 34.375rem) {
  .container { width: 80%; }
  .column, .columns { margin-left: 0; }
  .column:first-child, .columns:first-child { margin-left: 0; }
}

/* ── Base ─────────────────────────────────────── */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.03) 0%, transparent 60%);
  color: var(--text-primary);
  font-family: 'Pretendard', 'Gothic A1', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--scale-1);
  font-weight: 400;
  line-height: 1.6;
}

/* ── Avatar ───────────────────────────────────── */
.avatar {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto var(--spacing-l);
  border: 2px solid var(--border-subtle);
  animation: scaleIn var(--dur) var(--ease-out-expo) both,
             pulseGlow 4s ease-in-out 1.5s infinite;
}

.avatar:hover {
  animation: float 3s ease-in-out infinite,
             pulseGlow 3s ease-in-out infinite;
}

.avatar--none    { border-radius: 0; }
.avatar--rounded { border-radius: 50%; }
.avatar--soft    { border-radius: 0.5rem; }

/* ── Typography ───────────────────────────────── */
h1 {
  margin: 0 0 var(--spacing-s) 0;
  font-family: 'Syne', 'Gothic A1', 'Pretendard', sans-serif;
  font-size: var(--scale-5);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp var(--dur) var(--ease-out-expo) 0.12s both;
}

.container p {
  margin: 0 0 var(--spacing-xl) 0;
  font-size: var(--scale-0);
  line-height: 1.7;
  color: var(--text-muted);
  animation: fadeUp var(--dur) var(--ease-out-expo) 0.24s both;
}

/* ── Links ────────────────────────────────────── */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: #67e8f9;
  text-decoration-color: #67e8f9;
}

/* ── Buttons ──────────────────────────────────── */
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18.75rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  white-space: normal;
  background-color: var(--button-background, transparent);
  color: var(--button-text, #fff);
  border: var(--button-border, 1px solid var(--border-subtle));
  border-radius: 0.75rem;
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 0.875rem;
  text-align: center;
  line-height: 1.3;
  position: relative;
  animation: fadeUp var(--dur) var(--ease-out-expo) both;
}

/* Stagger entrance delays */
.button-stack > :nth-child(1) { animation-delay: 0.36s; }
.button-stack > :nth-child(2) { animation-delay: 0.46s; }
.button-stack > :nth-child(3) { animation-delay: 0.56s; }
.button-stack > :nth-child(4) { animation-delay: 0.66s; }
.button-stack > :nth-child(5) { animation-delay: 0.76s; }
.button-stack > :nth-child(6) { animation-delay: 0.86s; }
.button-stack > :nth-child(7) { animation-delay: 0.96s; }
.button-stack > :nth-child(8) { animation-delay: 1.06s; }

/* ── Icons ────────────────────────────────────── */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* ── Footer ───────────────────────────────────── */
footer {
  margin: var(--spacing-xxl) 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  animation: fadeUp var(--dur) var(--ease-out-expo) 1.1s both;
}

footer a {
  color: var(--text-muted);
  text-decoration-color: transparent;
}

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

/* ── Theme ────────────────────────────────────── */
:root.theme-dark,
:root.theme-auto {
  color-scheme: dark;
}

:root.theme-dark :focus-visible,
:root.theme-auto :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button:hover, button:hover {
  color: var(--button-text);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 34.375rem) {
  h1 { font-size: var(--scale-4); }
  body { font-size: var(--scale-0); }
  .container p { font-size: 0.875rem; }
  .avatar { margin-bottom: var(--spacing-m); }
  footer { margin: var(--spacing-xl) 0; }
  .bg-atmosphere::before { width: 350px; height: 350px; }
  .bg-atmosphere::after  { width: 280px; height: 280px; }
}

/* ── Privacy Page ─────────────────────────────── */
nav { margin: var(--spacing-l) 0; text-align: left; }
section { margin: var(--spacing-xl) 0; text-align: left; }
h2 { font-size: var(--scale-3); font-weight: 700; margin-bottom: var(--spacing-m); }
h3 { font-size: var(--scale-2); font-weight: 600; margin: var(--spacing-l) 0 var(--spacing-s) 0; }
ul { list-style: none; padding: 0; margin: 0 0 var(--spacing-m) 0; }
ul li { margin-bottom: var(--spacing-xs); }

@media (max-width: 34.375rem) {
  h2 { font-size: var(--scale-2); }
  h3 { font-size: var(--scale-1); }
  section { margin: var(--spacing-l) 0; }
}

/* ── Font Face (fallback) ─────────────────────── */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot');
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff') format('woff'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.ttf') format('truetype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.svg#OpenSans') format('svg');
}
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.eot');
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.eot?#iefix') format('embedded-opentype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff2') format('woff2'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff') format('woff'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.ttf') format('truetype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.svg#OpenSans') format('svg');
}
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.eot');
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2') format('woff2'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff') format('woff'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.ttf') format('truetype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.svg#OpenSans') format('svg');
}
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.eot');
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.eot?#iefix') format('embedded-opentype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff2') format('woff2'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff') format('woff'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.ttf') format('truetype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.svg#OpenSans') format('svg');
}
