/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f2744;
  --navy-light: #1a365d;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(15, 39, 68, 0.06), 0 1px 2px rgba(15, 39, 68, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 39, 68, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); }

.btn-outline {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--gray-300); background: var(--gray-50); }

.btn-footer {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  margin-top: 12px;
  width: 100%;
}
.btn-footer:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); }

/* ── Header ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color 0.2s;
}
.header-email:hover { color: var(--blue); }
.header-email svg { flex-shrink: 0; }

/* ── Hero ── */
.hero {
  background: var(--white);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--gray-100);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-email-link {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color 0.2s;
}
.hero-email-link:hover { color: var(--blue); }

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.globe-wrap {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: globeFloat 6s ease-in-out infinite;
}

.globe-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 24px rgba(59, 130, 246, 0.18));
}

.gnode {
  opacity: 0.9;
}

.gpulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3s ease-in-out infinite;
}

.gpulse:nth-of-type(2)  { animation-delay: 0.6s; }
.gpulse:nth-of-type(3)  { animation-delay: 1.2s; }
.gpulse:nth-of-type(4)  { animation-delay: 1.8s; }

@keyframes globeFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.9); }
}

.hero-features {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-feature span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
}

/* ── Filters ── */
.filters-section {
  padding: 28px 0 0;
}

.filters-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--gray-400);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-700);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-select {
  padding: 10px 32px 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-select:focus { border-color: var(--blue); }

.filter-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: border-color 0.2s;
}
.filter-sort:hover { border-color: var(--gray-300); }

.filters-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-bottom: 16px;
}

#domain-count {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn.active,
.view-btn:hover {
  color: var(--navy);
  border-color: var(--gray-300);
  background: var(--gray-50);
}

/* ── Domain Grid ── */
.domains-section {
  padding: 8px 0 48px;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.domain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.domain-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.domain-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  word-break: break-all;
}

.domain-ext {
  color: var(--gray-400);
  font-weight: 600;
}

.domain-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.domain-tld {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.domain-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-ai      { background: #dcfce7; color: #15803d; }
.tag-tech    { background: #dbeafe; color: #1d4ed8; }
.tag-crypto  { background: #ede9fe; color: #6d28d9; }
.tag-travel  { background: #fef9c3; color: #a16207; }
.tag-finance { background: #e0e7ff; color: #3730a3; }
.tag-health  { background: #fce7f3; color: #be185d; }
.tag-food    { background: #ffedd5; color: #c2410c; }
.tag-edu     { background: #ccfbf1; color: #0f766e; }
.tag-game    { background: #fae8ff; color: #9333ea; }
.tag-fashion { background: #ffe4e6; color: #be123c; }
.tag-energy  { background: #d1fae5; color: #047857; }
.tag-ecom    { background: #fef3c7; color: #b45309; }
.tag-pet     { background: #fed7aa; color: #9a3412; }
.tag-music   { background: #e0f2fe; color: #0369a1; }
.tag-build   { background: #f3f4f6; color: #374151; }
.tag-brand   { background: #f5f3ff; color: #5b21b6; }
.tag-law     { background: #f1f5f9; color: #475569; }
.tag-realestate { background: #ecfdf5; color: #065f46; }
.tag-media   { background: #fff1f2; color: #9f1239; }
.tag-default { background: var(--gray-100); color: var(--gray-600); }

.domain-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-top: auto;
  padding-top: 4px;
  transition: color 0.2s;
}
.domain-contact:hover { color: var(--blue); }

.domain-contact--live {
  color: #0f766e;
}
.domain-contact--live:hover { color: #0d9488; }

/* List view */
.domain-list {
  grid-template-columns: 1fr;
  gap: 8px;
}

.domain-list .domain-card {
  flex-direction: row;
  align-items: center;
  padding: 16px 20px;
}

.domain-list .domain-name { flex: 1; min-width: 0; }
.domain-list .domain-meta { flex: 0 0 auto; }
.domain-list .domain-contact { margin-top: 0; padding-top: 0; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 0;
  color: var(--gray-400);
  font-size: 0.9375rem;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 36px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--gray-300);
  background: var(--gray-50);
}
.page-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-dots {
  padding: 0 4px;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo-img {
  display: block;
  width: 52px;
  height: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-email {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--white); }

.footer-col h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.8125rem;
  line-height: 1.7;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}

.footer-list svg { color: #4ade80; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .domain-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .logo-img { height: 44px; }
}

@media (max-width: 768px) {
  .header-email { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .globe-wrap { width: 200px; height: 200px; }
  .hero-features { gap: 20px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .filter-select, .filter-sort { width: 100%; }
}

@media (max-width: 480px) {
  .domain-grid { grid-template-columns: 1fr; }
  .hero-features { flex-direction: column; gap: 16px; }
  .hero-feature { flex-direction: row; gap: 12px; }
}
