/* ===== HalowLink Support - Global Styles ===== */
:root {
  --orange: #ff6200;
  --orange-light: #ff8533;
  --orange-dark: #e55800;
  --dark: #2e3135;
  --dark-light: #3d4147;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--orange);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo-link svg,
.logo-link img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--white);
}

.logo-text span {
  color: var(--orange);
}

nav { display: flex; gap: 4px; }

nav a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
}

nav a:hover,
nav a.active {
  color: var(--white);
  background: var(--dark-light);
}

nav a.active {
  color: var(--orange);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 8px 16px 16px;
    border-bottom: 3px solid var(--orange);
    gap: 2px;
  }

  nav.open { display: flex; }

  nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,98,0,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
}

.hero h1 span { color: var(--orange); }

.hero p {
  color: var(--gray-300);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

/* ===== Page Hero (smaller) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,98,0,.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  position: relative;
}

.page-hero h1 span { color: var(--orange); }

.page-hero .subtitle {
  color: var(--gray-300);
  font-size: .95rem;
  position: relative;
}

/* ===== Card Grid (Homepage) ===== */
.cards-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .25s;
  text-decoration: none;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .25s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--gray-500);
  font-size: .95rem;
  flex: 1;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 600;
  font-size: .9rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: transform .2s;
}

.card:hover .card-link svg { transform: translateX(3px); }

/* ===== Content Page ===== */
.content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.content-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
  color: var(--dark);
}

.content-wrap h2:first-child { margin-top: 0; }

.content-wrap h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--dark);
}

.content-wrap p {
  margin-bottom: 16px;
  color: var(--gray-700);
}

.content-wrap ul, .content-wrap ol {
  margin: 0 0 16px 24px;
  color: var(--gray-700);
}

.content-wrap li { margin-bottom: 6px; }

.content-wrap a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

.content-wrap a:hover { text-decoration: underline; }

.content-wrap strong { color: var(--dark); }

/* Callout / highlight box */
.callout {
  background: var(--gray-50);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.callout p { margin-bottom: 0; }

.callout.warning {
  background: #fff7ed;
  border-left-color: var(--orange-dark);
}

.callout.warning p { color: var(--dark); }

/* Steps list for account deletion */
.steps {
  list-style: none;
  margin-left: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Last updated badge */
.last-updated {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--dark);
  color: var(--gray-500);
  padding: 32px 24px;
  text-align: center;
  font-size: .85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-inner p { margin: 0; }

/* ===== Utilities ===== */
@media (max-width: 480px) {
  .cards-section { padding: 40px 16px; }
  .content-wrap { padding: 32px 16px 60px; }
  .hero { padding: 56px 16px; }
  .page-hero { padding: 36px 16px; }
}
