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

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

:root {
  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --red: #ea4335;
  --green: #34a853;
  --yellow: #fbbc04;
  --text: #202124;
  --text-2: #5f6368;
  --text-3: #80868b;
  --border: #dadce0;
  --bg: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 1px 6px rgba(32,33,36,.28);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
  --font: 'Roboto', 'Google Sans', sans-serif;
  --font-brand: 'Google Sans', 'Roboto', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 12px 24px 0;
  padding: 0;
  position: relative;
  z-index: 10;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}

.announcement-content {
  font-size: 14px;
  color: var(--text);
}

.learn-more {
  color: var(--blue);
  font-weight: 500;
  margin-left: 8px;
}
.learn-more:hover { text-decoration: underline; }

.announcement-icon { flex-shrink: 0; }

.close-banner {
  background: none;
  color: var(--text-2);
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.15s;
  flex-shrink: 0;
}
.close-banner:hover { background: var(--bg); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.2s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.logo-text {
  font-family: var(--font-brand);
  font-size: 22px;
  color: var(--text-2);
  letter-spacing: -0.3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.15s;
  font-weight: 500;
}
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-signin { color: var(--blue); }

.nav-btn-create {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--blue);
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-brand);
  transition: background 0.15s, box-shadow 0.15s;
  margin-left: 4px;
}
.nav-btn-create:hover { background: var(--blue-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.mobile-menu-btn span {
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  display: block;
}

.mobile-menu {
  background: var(--white);
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  color: var(--text);
  transition: background 0.15s;
}
.mobile-menu a:hover { background: var(--bg); }
.hidden { display: none !important; }

/* ===== HERO ===== */
.hero-section {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 130px);
  padding: 60px 80px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left {
  flex: 1;
  animation: fadeInLeft 0.7s ease forwards;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-title {
  font-family: var(--font-brand);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-highlight { color: var(--blue); }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.create-btn-wrapper { position: relative; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: white;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-brand);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.btn-primary a { color: white; }

.create-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  overflow: hidden;
  z-index: 50;
  animation: dropDown 0.15s ease;
}
.create-dropdown.show { display: block; }

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-icon { font-size: 20px; }

.btn-text-link {
  font-size: 16px;
  color: var(--blue);
  font-weight: 500;
  transition: opacity 0.15s;
}
.btn-text-link:hover { opacity: 0.8; text-decoration: underline; }

/* ===== MAIL MOCKUP ===== */
.hero-right {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInRight 0.7s ease 0.2s forwards;
}

.mail-mockup {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.mockup-logo { display: flex; align-items: center; gap: 2px; }

.mockup-search {
  flex: 1;
  max-width: 260px;
  background: var(--bg);
  border-radius: 24px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px;
  font-size: 13px;
  color: var(--text-2);
}

.mockup-body {
  display: flex;
  height: 280px;
}

.mockup-sidebar {
  width: 140px;
  padding: 8px 0;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.ms-compose {
  background: #c2e7ff;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 4px 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ms-nav {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-2);
  border-radius: 0 24px 24px 0;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
}
.ms-nav:hover { background: var(--bg); }
.ms-nav.active { background: #d3e3fd; font-weight: 700; color: var(--text); }

.ms-badge {
  background: var(--text);
  color: white;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
}

.mockup-list {
  flex: 1;
  overflow: hidden;
}

.ml-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  font-size: 12px;
}
.ml-item:hover { background: var(--bg); }
.ml-item.unread { font-weight: 700; background: var(--white); }

.ml-from { width: 90px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-content { flex: 1; overflow: hidden; white-space: nowrap; }
.ml-subject { font-size: 12px; }
.ml-preview { color: var(--text-2); font-weight: 400; font-size: 11px; }
.ml-date { font-size: 11px; color: var(--text-2); flex-shrink: 0; }
.ml-item.unread .ml-date { color: var(--text); }

.ai-bubble {
  position: absolute;
  bottom: -12px;
  right: -8px;
  background: linear-gradient(135deg, #4285f4, #9c27b0);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(66,133,244,0.4);
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}
.ai-star { margin-right: 4px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-star {
  position: absolute;
  color: #4285f4;
  animation: float 3s ease-in-out infinite;
  font-size: 28px;
  opacity: 0.7;
}
.star-1 { bottom: 60px; left: -20px; animation-delay: 0.5s; }
.star-2 { top: 30px; right: -10px; font-size: 18px; animation-delay: 1s; color: var(--yellow); }

/* ===== FEATURES ===== */
.features-section {
  padding: 80px 80px;
  background: var(--bg);
}

.section-title {
  font-family: var(--font-brand);
  font-size: 36px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.feature-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.feature-card h3 {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===== TOOLS SECTION ===== */
.tools-section {
  padding: 80px;
  background: var(--white);
}

.tools-container { max-width: 1100px; margin: 0 auto; }

.tools-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.tools-header h2 {
  font-family: var(--font-brand);
  font-size: 36px;
  font-weight: 400;
}

.tools-header p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 400px;
  text-align: right;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  min-height: 200px;
}

.tool-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: var(--bg);
  border-radius: 16px;
  border: 2px dashed var(--border);
  text-align: center;
  gap: 8px;
}
.placeholder-icon { font-size: 48px; margin-bottom: 8px; }
.tool-placeholder p { font-size: 18px; font-weight: 500; color: var(--text-2); }
.tool-placeholder span { font-size: 14px; color: var(--text-3); }

/* ===== CTA ===== */
.cta-section {
  padding: 80px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  text-align: center;
}

.cta-inner { max-width: 600px; margin: 0 auto; }

.cta-section h2 {
  font-family: var(--font-brand);
  font-size: 40px;
  font-weight: 400;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-actions .btn-primary {
  background: white;
  color: var(--blue);
}
.cta-actions .btn-primary:hover { background: var(--bg); }

.btn-outline {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-brand);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg);
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.lang-select {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-section { padding: 40px; flex-direction: column; }
  .hero-title { font-size: 40px; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-section { padding: 32px 24px; min-height: auto; }
  .hero-title { font-size: 32px; }
  .features-section, .tools-section, .cta-section { padding: 60px 24px; }
  .tools-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tools-header p { text-align: left; }
  .features-grid { grid-template-columns: 1fr; }
}
