@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Global Tokens */
  --bg-subtle: hsl(210, 20%, 98%);
  --bg-card: #ffffff;
  --text-main: hsl(210, 25%, 15%);
  --text-subtle: hsl(210, 10%, 45%);
  --accent: hsl(220, 90%, 55%);
  --success: hsl(145, 60%, 45%);
  --warning: hsl(40, 95%, 55%);
  --danger: hsl(0, 75%, 55%);
  --border-color: hsl(210, 15%, 90%);

  /* Layout Tokens */
  --radius-md: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --header-height: 72px;

  /* Derived Tokens */
  --bg-success-subtle: hsla(145, 60%, 45%, 0.1);
  --bg-warning-subtle: hsla(40, 95%, 55%, 0.1);
  --bg-danger-subtle: hsla(0, 75%, 55%, 0.1);
  --bg-accent-subtle: hsla(220, 90%, 55%, 0.05);
  --text-warning-bold: hsl(40, 90%, 25%);

  /* Gradients */
  --header-title-gradient: linear-gradient(135deg, var(--accent), hsl(250, 80%, 60%));
  --app-background-gradient: radial-gradient(circle at top left, hsl(210, 20%, 99%), var(--bg-subtle));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--app-background-gradient);
}

/* Header */
.header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-logo {
  height: 28px;
  display: block;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-left: 1rem;
  background: var(--header-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main Content */
.main {
  flex: 1;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  text-align: left;
}

.card h1 {
  margin-top: 0;
  font-size: 2.5rem;
  color: var(--text-main);
}

.card p {
  color: var(--text-subtle);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.highlight {
  color: hsl(265, 70%, 50%); /* Deep violet/indigo, distinct from accent blue */
  font-weight: 700;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 2rem;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.footer p {
  margin: 0.5rem 0;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* Email Obfuscation */
.email-obfuscated {
  unicode-bidi: bidi-override;
  direction: rtl;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
}

.email-obfuscated:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border-color) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
