/* ============================================================
   DOTCOM DESIGN — AI PORTAL
   Design System: Montserrat, Navy/Blue palette
   Matches: Project Hub, SEO Strategy Portal
   ============================================================ */

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

:root {
  --dot-blue:    #3F80EA;
  --dot-dark:    #334168;
  --dot-red:     #EB0052;
  --text-grey:   #35373C;
  --bg-grey:     #E6E6E6;
  --white:       #FFFFFF;
  --navy-deep:   #1e2d4a;
  --navy-mid:    #253557;
  --card-bg:     #FFFFFF;
  --input-bg:    #fafbfd;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14);
  --radius:      10px;
  --radius-lg:   16px;
  --font:        'Montserrat', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text-grey);
  background: #f7f8fc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dot-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.nav-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-divider {
  color: rgba(255,255,255,0.25);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
}

.nav-label {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--dot-blue);
  color: #fff;
  border-color: var(--dot-blue);
}

.btn-primary:hover {
  background: #2d6fd4;
  border-color: #2d6fd4;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(63,128,234,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--dot-dark) 60%, #2a4a7f 100%);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dot-blue);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  text-align: center;
  min-width: 140px;
  backdrop-filter: blur(8px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--dot-blue);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-card {
    flex: 1;
    min-width: 100px;
  }
}

/* ─── Section Shared ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dot-blue);
  margin-bottom: 0.625rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--dot-dark);
  margin-bottom: 0.875rem;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Quick Actions ─────────────────────────────────────────── */
.quick-actions-section {
  background: var(--white);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.qa-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.qa-card:hover {
  border-color: var(--dot-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: #fff;
}

.qa-card:hover .qa-arrow {
  transform: translateX(4px);
  color: var(--dot-blue);
}

.qa-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-icon--blue {
  background: rgba(63,128,234,0.12);
  color: var(--dot-blue);
}

.qa-icon--navy {
  background: rgba(51,65,104,0.1);
  color: var(--dot-dark);
}

.qa-content {
  flex: 1;
  min-width: 0;
}

.qa-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dot-dark);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.qa-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  font-weight: 400;
}

.qa-arrow {
  font-size: 1.125rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.2s ease;
  font-weight: 300;
}

/* ─── Tools Section ─────────────────────────────────────────── */
.tools-section {
  background: #f7f8fc;
  padding: 5rem 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--dot-blue);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(63,128,234,0.3);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card--featured {
  border-color: rgba(63,128,234,0.3);
  box-shadow: var(--shadow-md);
}

.tool-card--featured::before {
  opacity: 1;
}

.tool-card--coming-soon {
  opacity: 0.7;
}

.tool-card--coming-soon::before {
  background: #94a3b8;
}

.tool-card--coming-soon:hover {
  opacity: 0.8;
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon-wrap--blue {
  background: rgba(63,128,234,0.12);
  color: var(--dot-blue);
}

.tool-icon-wrap--navy {
  background: rgba(51,65,104,0.1);
  color: var(--dot-dark);
}

.tool-icon-wrap--muted {
  background: #f1f5f9;
  color: #94a3b8;
}

.tool-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.tool-badge--live {
  background: rgba(16,185,129,0.12);
  color: #059669;
}

.tool-badge--soon {
  background: #f1f5f9;
  color: #64748b;
}

.tool-name {
  font-size: 1.125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dot-dark);
}

.tool-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.65;
  font-weight: 400;
  flex: 1;
}

.tool-features {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.tool-features li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-grey);
  padding-left: 1rem;
  position: relative;
}

.tool-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--dot-blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.tool-card--coming-soon .tool-features li::before {
  color: #94a3b8;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dot-blue);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  transition: gap 0.2s ease;
}

.tool-link:hover {
  gap: 0.75rem;
  color: #2d6fd4;
}

.tool-link--disabled {
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Workflow Section ──────────────────────────────────────── */
.workflow-section {
  background: var(--dot-dark);
  padding: 5rem 0;
}

.workflow-section .section-title {
  color: #fff;
}

.workflow-section .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.workflow-section .section-eyebrow {
  color: var(--dot-blue);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

@media (max-width: 900px) {
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

.workflow-step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: background 0.2s ease;
}

.workflow-step:hover {
  background: rgba(255,255,255,0.09);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--dot-blue);
  line-height: 1;
  opacity: 0.7;
}

.step-title {
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.step-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  font-weight: 400;
  flex: 1;
}

.step-link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dot-blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.step-link:hover {
  opacity: 0.8;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Focus / Accessibility ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--dot-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
