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

:root {
  --bg-color: #0d0d12;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --accent-color: #5c67ff;
  --google-color: #4285F4;
  --chatgpt-color: #10a37f;
  --gemini-color: #8e24aa; /* approximated gradient base */
  --claude-color: #d97757;
  --surf-teal: #1ec8b0;
  --surf-teal-dim: rgba(30, 200, 176, 0.14);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(92, 103, 255, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(142, 36, 170, 0.08), transparent 25%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header & Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  min-height: calc(100vh - 80px);
}

/* Greeting / Title */
.greeting {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  background: linear-gradient(to right, #fff, #a0a0b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 0.8s ease-out;
}

/* Search Box */
.search-container {
  width: 100%;
  max-width: 680px;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(12px);
}

.search-form:focus-within {
  border-color: rgba(92, 103, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(92, 103, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.search-icon {
  width: 24px;
  height: 24px;
  margin-left: 1rem;
  color: var(--text-secondary);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1.15rem;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-button {
  background: var(--google-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-button:hover {
  background: #3367d6;
  transform: translateY(-1px);
}

/* Surfshark Search partner spot */
.sponsor-spot {
  width: 100%;
  max-width: 680px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.32s both;
}

.sponsor-card {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.25rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(30, 200, 176, 0.08) 0%, var(--glass-bg) 45%, rgba(13, 13, 18, 0.9) 100%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.sponsor-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--surf-teal), rgba(30, 200, 176, 0.15));
  pointer-events: none;
}

.sponsor-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surf-teal);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surf-teal-dim);
  border: 1px solid rgba(30, 200, 176, 0.25);
}

.sponsor-body {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.sponsor-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(30, 200, 176, 0.2), rgba(30, 200, 176, 0.05));
  border: 1px solid rgba(30, 200, 176, 0.25);
  color: var(--surf-teal);
}

.sponsor-icon {
  width: 28px;
  height: 28px;
}

.sponsor-text {
  min-width: 0;
}

.sponsor-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.sponsor-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.sponsor-desc strong {
  color: #c8faf3;
  font-weight: 600;
}

.sponsor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.sponsor-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #041312;
  background: linear-gradient(180deg, #3ee4cc 0%, var(--surf-teal) 100%);
  box-shadow: 0 4px 20px rgba(30, 200, 176, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sponsor-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 200, 176, 0.45);
  filter: brightness(1.05);
}

.sponsor-link-subtle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(160, 160, 176, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sponsor-link-subtle:hover {
  color: var(--surf-teal);
  border-color: rgba(30, 200, 176, 0.5);
}

/* AI Capabilities Section */
.ai-section {
  width: 100%;
  max-width: 680px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.ai-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.ai-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ai-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-card:hover {
  transform: translateY(-4px);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

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

.ai-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.ai-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.chatgpt-icon { color: var(--chatgpt-color); }
.gemini-icon { color: #fff; background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.claude-icon { color: var(--claude-color); }

.ai-name {
  font-weight: 500;
  font-size: 1rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  background: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(8px);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Privacy Policy Page specific */
.privacy-container {
  max-width: 800px;
  margin: 4rem auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.6s ease-out;
}

.privacy-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
}

.privacy-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.privacy-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #fff;
  font-weight: 600;
}

.privacy-content p, .privacy-content ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.privacy-content ul {
  padding-left: 1.5rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-button svg {
  margin-right: 0.5rem;
  stroke: currentColor;
}

.back-button:hover {
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .greeting {
    font-size: 2.25rem;
  }
  
  .search-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
  }
  
  .search-icon {
    display: none;
  }
  
  .search-input {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
  
  .search-button {
    width: 100%;
    border-radius: 12px;
  }
  
  .sponsor-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sponsor-actions {
    justify-content: center;
  }

  .sponsor-cta {
    width: 100%;
  }

  .ai-cards {
    grid-template-columns: 1fr;
  }
  
  .privacy-container {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }
}
