/* =============================================
   Automation — OAuth Branding Site
   style.css
   ============================================= */

/* --- Fonts & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #0f1117;
  --color-surface: #1a1d27;
  --color-surface-2: #1f2235;
  --color-border: #2a2e42;
  --color-accent: #4f8ef7;
  --color-accent-dim: #3a6fd8;
  --color-accent-soft: rgba(79, 142, 247, 0.12);
  --color-text: #e2e6f0;
  --color-text-muted: #8b93a8;
  --color-text-faint: #5c6278;
  --color-highlight: #233056;
  --color-success: #34d399;

  --radius: 12px;
  --radius-sm: 8px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --max-width: 860px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.site-header {
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand-icon {
  font-size: 1.4rem;
  color: var(--color-accent);
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.nav-link.active {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #0f1117 0%, #141829 40%, #1a1f35 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,142,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-small {
  padding: 3rem 0 2.5rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* --- Content --- */
.content-wrapper {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(79, 142, 247, 0.3);
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.card ul li::marker {
  color: var(--color-accent);
}

.highlight-card {
  border-color: rgba(79, 142, 247, 0.35);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-highlight) 100%);
}

.disclaimer {
  background: var(--color-surface-2);
  border-style: dashed;
}

.disclaimer p {
  font-size: 0.875rem;
  color: var(--color-text-faint);
  font-style: italic;
}

/* --- Meta block (Last updated) --- */
.meta-block {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* --- CTA Block --- */
.cta-block {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(79, 142, 247, 0.5);
}

.btn-primary:hover {
  background: var(--color-accent-dim);
  box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border: 1px solid rgba(79, 142, 247, 0.3);
}

.btn-secondary:hover {
  background: rgba(79, 142, 247, 0.2);
  transform: translateY(-1px);
}

/* --- Links --- */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #79aaff;
  text-decoration: underline;
}

.email-link {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.email-link::before {
  content: '✉';
  font-size: 0.9em;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
}

.footer-brand {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.footer-sep {
  color: var(--color-text-faint);
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

.footer-contact a {
  color: var(--color-text-muted);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  .main-nav {
    width: 100%;
  }

  .nav-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero-small {
    padding: 2rem 0 1.75rem;
  }

  .card {
    padding: 1.25rem;
  }

  .cta-block {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
