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

:root {
    --bg-color: #ffffff;
    --accent-cyan: #0284c7;
    --accent-purple: #4f46e5;
    --text-primary: #000000;
    --text-secondary: #334155;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.04) 0%, transparent 40%);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%; /* İçeriğin tam genişliğe yayılmasını sağlar */
}

header {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin-left: auto; /* Navigasyonu en sağa iter */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 2rem;
}

.lang-switch a {
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

.lang-switch a.active {
    color: var(--accent-cyan) !important;
    font-weight: 700 !important;
}

.lang-switch span {
    opacity: 0.3;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 220px;
    vertical-align: middle;
    transition: var(--transition);
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.06));
    display: block;
}

header.scrolled .logo img {
    height: 48px;
}

.btn-primary {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #026ca3, #3c35bd);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    position: relative;
    padding-top: 100px;
    background: 
        radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a 30%, #4f46e5 70%, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    display: block;
    width: 100%;
    text-align: center;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Product Section */
.products {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0f172a 40%, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.section-title p {
    color: var(--text-secondary);
}

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

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

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

.product-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(79, 70, 229, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(2, 132, 199, 0.12);
    transition: var(--transition);
}

.product-card:hover .product-icon-container {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
    transform: scale(1.05);
}

.product-svg-icon {
    width: 32px;
    height: 32px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Secondary Button */
.btn-secondary {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Product Detail Page Layout */
.detail-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(79, 70, 229, 0.04) 0%, transparent 60%);
    border-bottom: 1px solid var(--glass-border);
}

.detail-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a 40%, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.detail-hero p.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.detail-section {
    padding: 80px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Mockup Interface Cards */
.mockup-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.mockup-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.mockup-avatar.claude {
    background: #d97706; /* Amber color for Claude */
}

.mockup-avatar.chatgpt {
    background: #10b981; /* Green color for ChatGPT */
}

.mockup-avatar.wa {
    background: #25d366; /* WhatsApp color */
}

.mockup-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.mockup-chat-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    font-size: 0.9rem;
}

.mockup-message {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    line-height: 1.5;
}

.mockup-message.user {
    align-self: flex-end;
    background: #f1f5f9;
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.mockup-message.assistant {
    align-self: flex-start;
    background: rgba(79, 70, 229, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.mockup-message.wa-in {
    align-self: flex-start;
    background: #f1f5f9;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.mockup-message.wa-out {
    align-self: flex-end;
    background: #dcf8c6; /* WhatsApp green bubble */
    color: #0f172a;
    border-bottom-right-radius: 4px;
}

.mockup-tool-call {
    align-self: flex-start;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    width: 100%;
}

.mockup-table-container {
    margin-top: 0.5rem;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.mockup-table th, .mockup-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
}

.mockup-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 700;
}

.mockup-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .detail-hero h1 {
        font-size: 3rem;
    }
}

/* CallGration Phone Simulator Styles */
.phone-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.virtual-phone {
  --bg-page: #030712;
  --bg-surface: #0b1120;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #0ea5e9;
  --secondary: #6366f1;
  --secondary-glow: rgba(99, 102, 241, 0.4);
  --accent: #10b981;

  width: 290px;
  height: 540px;
  background: #090e1c;
  border: 6px solid #1f293d;
  border-radius: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.phone-speaker {
  width: 60px;
  height: 6px;
  background: #1f293d;
  border-radius: 99px;
  margin: 12px auto 0;
}

.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  justify-content: space-between;
  text-align: center;
}

.phone-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: phoneDotPulse 1.2s infinite alternate;
}

@keyframes phoneDotPulse {
  0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
  100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px 3px rgba(14, 165, 233, 0.3); }
}

.phone-details-scroll {
  flex: 1;
  overflow-y: auto;
  text-align: left;
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  font-size: 11px;
  max-height: 290px;
}

.phone-details-scroll::-webkit-scrollbar {
  width: 4px;
}
.phone-details-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.phone-details-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.phone-detail-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 0;
}
.phone-detail-row:last-child {
  border-bottom: 0;
}
.phone-detail-row label {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 600;
}
.phone-detail-row span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}
.phone-detail-row .badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.phone-simulate-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.btn-trigger-call {
  background: var(--secondary);
  border: 0;
  color: #fff;
  padding: 12px 18px;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--secondary-glow);
  font-size: 13px;
  transition: var(--transition);
}

.btn-trigger-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--secondary-glow);
}

.phone-incoming-call {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.phone-caller-info {
  margin-top: 40px;
}

.phone-caller-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}

.phone-caller-num {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0;
}

.phone-caller-status {
  font-size: 12px;
  color: var(--text-muted);
  animation: blink 1.2s infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.phone-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.phone-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: var(--transition);
}

.phone-btn.decline {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.phone-btn.decline:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.phone-btn.accept {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.phone-btn.accept:hover {
  background: #059669;
  transform: scale(1.1);
}

/* Mockup Tabs & Pane styling for MCP Gateway */
.na-tabs {
  background: #f8fafc;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  padding: 8px 16px 0;
  gap: 8px;
  border-radius: 20px 20px 0 0;
}

.na-tab-btn {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.na-tab-btn:hover {
  opacity: 1;
  color: var(--text-primary);
}

.na-tab-btn.active {
  opacity: 1;
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-bottom: 3px solid var(--accent-cyan);
}

.na-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.na-pane.active {
  display: flex;
}

.mockup-avatar.chatgpt {
  background: #10a37f !important;
  color: white !important;
}

/* Custom Premium Select Dropdown Styles */
.sim-select-dark {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background: #0d1527;
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--text-main);
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%236366f1' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.sim-select-dark:hover, .sim-select-dark:focus {
  border-color: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.25);
}

.sim-select-light {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background: white;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.sim-select-light:hover, .sim-select-light:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.15);
}

/* Premium Architecture Flow Diagram */
.flow-diagram {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 16px;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  text-align: center;
  flex: 1;
}

.flow-step.accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: white;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
  border: none;
}

.flow-connector {
  color: var(--text-secondary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.flow-connector::after {
  content: "⇄";
}

@media (max-width: 992px) {
  .flow-diagram {
    flex-direction: column;
    gap: 1rem;
    max-width: 320px;
  }
  .flow-step {
    width: 100%;
  }
  .flow-connector::after {
    content: "⇅";
  }
}
